| Modifier and Type | Class and Description |
|---|---|
| private static class | InMemorySessionManager.
session implementation for the in memory session manager |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicLong | |
| private volatile int | defaultSessionTimeout
30 minute default |
| private final String | |
| private final ConcurrentDirectDeque | |
| private volatile long | |
| private final boolean | |
| private final AtomicInteger | |
| private volatile long | |
| private final int | |
| private final AttachmentKey | |
| private final AtomicLong | |
| private final SessionIdGenerator | |
| private final SessionListeners | |
| private final ConcurrentMap | |
| private volatile long | |
| private final boolean | |
| private volatile BigInteger |
| Access | Constructor and Description |
|---|---|
| public | InMemorySessionManager(String deploymentName, int maxSessions, boolean expireOldestUnusedSessionOnMax)
|
| public | InMemorySessionManager(SessionIdGenerator sessionIdGenerator, String deploymentName, int maxSessions, boolean expireOldestUnusedSessionOnMax)
|
| public | InMemorySessionManager(SessionIdGenerator sessionIdGenerator, String deploymentName, int maxSessions, boolean expireOldestUnusedSessionOnMax, boolean statisticsEnabled)
|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public Session | createSession(final HttpServerExchange serverExchange, final SessionConfig config)
Implements io. Creates a new session. |
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. Indicates whether some other object is "equal to" this one. |
| public long | |
| public Set | getActiveSessions()
Implements io. Returns the identifiers of those sessions that are active on this node, excluding passivated sessions |
| public Set | getAllSessions()
Implements io. Returns the identifiers of all sessions, including both active and passive |
| public synchronized long | |
| public long | |
| public String | getDeploymentName()
Implements io. Uniquely identifies this session manager |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public Session | getSession(final HttpServerExchange serverExchange, final SessionConfig config)
Implements io.
|
| public Session | getSession(String
The session ID sessionId)Implements io. Retrieves a session with the given session id |
| public long | |
| public SessionManagerStatistics | getStatistics()
Implements io. Returns the statistics for this session manager, or null, if statistics are not supported. |
| public Set | getTransientSessions()
Implements io. Returns the identifiers of those sessions that would be lost upon shutdown of this node |
| public int | |
| public synchronized void | registerSessionListener(final SessionListener
The listener listener)Implements io. Registers a session listener for the session manager |
| public synchronized void | removeSessionListener(final SessionListener
the listener listener)Implements io. Removes a session listener from the session manager |
| private boolean | |
| public void | setDefaultSessionTimeout(final int
the timeout timeout)Implements io. Sets the default session timeout |
| public void | |
| public void | |
| public String |