| Modifier and Type | Class and Description |
|---|---|
| protected class | |
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| private static int | |
| private int | |
| private TimerTask | |
| private int | |
| protected Map | |
| private File | |
| private TimerTask | |
| private Timer |
| Access | Constructor and Description |
|---|---|
| public |
| __id | back to summary |
|---|---|
| private static int __id | |
| _savePeriodMs | back to summary |
|---|---|
| private int _savePeriodMs | |
| _saveTask | back to summary |
|---|---|
| private TimerTask _saveTask | |
| _scavengePeriodMs | back to summary |
|---|---|
| private int _scavengePeriodMs | |
| _sessions | back to summary |
|---|---|
| protected Map<K, V> _sessions | |
| _storeDir | back to summary |
|---|---|
| private File _storeDir | |
| _task | back to summary |
|---|---|
| private TimerTask _task | |
| _timer | back to summary |
|---|---|
| private Timer _timer | |
| HashSessionManager | back to summary |
|---|---|
| public HashSessionManager() | |
| addSession | back to summary |
|---|---|
| protected void addSession(AbstractSessionManager. Implements abstract org. | |
| doStart | back to summary |
|---|---|
| public void doStart() throws Exception Overrides org. | |
| doStop | back to summary |
|---|---|
| public void doStop() throws Exception Overrides org. | |
| getSavePeriod | back to summary |
|---|---|
| public int getSavePeriod() | |
| getScavengePeriod | back to summary |
|---|---|
public int getScavengePeriod()
| |
| getSession | back to summary |
|---|---|
| public AbstractSessionManager. Implements abstract org. Doc from org. Get a known existingsession
| |
| getSessionMap | back to summary |
|---|---|
| public Map Implements abstract org. | |
| getSessions | back to summary |
|---|---|
| public int getSessions() Implements abstract org. | |
| getStoreDirectory | back to summary |
|---|---|
| public File getStoreDirectory() | |
| invalidateSessions | back to summary |
|---|---|
| protected void invalidateSessions() Implements abstract org. | |
| newSession | back to summary |
|---|---|
| protected AbstractSessionManager. Implements abstract org. Doc from org. Create a new session instance | |
| newSession | back to summary |
|---|---|
| protected AbstractSessionManager. | |
| removeSession | back to summary |
|---|---|
| protected void removeSession(String clusterId) Implements abstract org. | |
| restoreSession | back to summary |
|---|---|
| public HashSessionManager. | |
| restoreSessions | back to summary |
|---|---|
| public void restoreSessions() throws Exception | |
| saveSessions | back to summary |
|---|---|
| public void saveSessions() throws Exception | |
| scavenge | back to summary |
|---|---|
| private void scavenge() Find sessions that have timed out and invalidate them. This runs in the SessionScavenger thread. | |
| setMaxInactiveInterval | back to summary |
|---|---|
| public void setMaxInactiveInterval(int seconds) Overrides org. Implements org. Doc from org. Sets the max period of inactivity, after which the session is invalidated, in seconds. | |
| setSavePeriod | back to summary |
|---|---|
| public void setSavePeriod(int seconds) | |
| setScavengePeriod | back to summary |
|---|---|
| public void setScavengePeriod(int seconds) | |
| setStoreDirectory | back to summary |
|---|---|
| public void setStoreDirectory(File dir) | |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Class | resolveClass(ObjectStreamClass
an instance of class cl)ObjectStreamClassOverrides java. |
| ClassLoadingObjectInputStream | back to summary |
|---|---|
| public ClassLoadingObjectInputStream(InputStream in) throws IOException | |
| ClassLoadingObjectInputStream | back to summary |
|---|---|
| public ClassLoadingObjectInputStream() throws IOException | |
| resolveClass | back to summary |
|---|---|
| public Class Overrides java. Doc from java. Load the local class equivalent of the specified stream class description. Subclasses may implement this method to allow classes to be fetched from an alternate source. The corresponding method in The default implementation of this method in
Class.forName(desc.getName(), false, loader) loader is the first class loader on the current
thread's stack (starting from the currently executing method) that is
neither the platform
class loader nor its ancestor; otherwise, loader is the
platform class loader. If this call results in a
ClassNotFoundException and the name of the passed
ObjectStreamClass instance is the Java language keyword
for a primitive type or void, then the Class object
representing that primitive type or void will be returned
(e.g., an ObjectStreamClass with the name
"int" will be resolved to Integer.TYPE).
Otherwise, the ClassNotFoundException will be thrown to
the caller of this method.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | invalidate()
Overrides org. Implements javax. |
| protected Map | newAttributeMap()
Implements abstract org. |
| public void | |
| public void | |
| public void | setMaxInactiveInterval(int
An integer specifying the number
of seconds secs)Overrides org. Implements javax. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Session | back to summary |
|---|---|
| protected Session(HttpServletRequest request) | |
| Session | back to summary |
|---|---|
| protected Session(long created, String clusterId) | |
| invalidate | back to summary |
|---|---|
| public void invalidate() throws IllegalStateException Overrides org. Implements javax. Doc from javax. Invalidates this session then unbinds any objects bound to it.
| |
| newAttributeMap | back to summary |
|---|---|
| protected Map Implements abstract org. | |
| remove | back to summary |
|---|---|
| public void remove() | |
| save | back to summary |
|---|---|
| public void save(OutputStream os) throws IOException | |
| setMaxInactiveInterval | back to summary |
|---|---|
| public void setMaxInactiveInterval(int secs) Overrides org. Implements javax. Doc from javax. Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. An interval value of zero or less indicates that the session should never timeout.
| |