public class HashSessionIdManager extends AbstractSessionIdManager
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener_random, _reseed, _weakRandom, _workerAttr, _workerName| Constructor and Description |
|---|
HashSessionIdManager() |
HashSessionIdManager(Random random) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSession(HttpSession session)
Add a session to the list of known sessions for a given ID.
|
protected void |
doStart() |
protected void |
doStop() |
Collection<HttpSession> |
getSession(String id) |
Collection<String> |
getSessions() |
boolean |
idInUse(String id) |
void |
invalidateAll(String id)
Call
HttpSession.invalidate() on all known sessions for the given id. |
void |
removeSession(HttpSession session)
Remove session from the list of known sessions for a given ID.
|
void |
renewSessionId(String oldClusterId,
String oldNodeId,
HttpServletRequest request)
Change the existing session id.
|
getClusterId, getNodeId, getRandom, getReseed, getWorkerName, initRandom, newSessionId, newSessionId, setRandom, setReseed, setWorkerNameaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic HashSessionIdManager()
public HashSessionIdManager(Random random)
public Collection<String> getSessions()
public Collection<HttpSession> getSession(String id)
protected void doStart()
throws Exception
doStart in class AbstractSessionIdManagerExceptionprotected void doStop()
throws Exception
doStop in class AbstractSessionIdManagerExceptionpublic boolean idInUse(String id)
id - The session ID without any cluster node extensionSessionIdManager#idInUse(String)public void addSession(HttpSession session)
SessionIdManagersession - The sessionSessionIdManager#addSession(HttpSession)public void removeSession(HttpSession session)
SessionIdManagerSessionIdManager#removeSession(HttpSession)public void invalidateAll(String id)
SessionIdManagerHttpSession.invalidate() on all known sessions for the given id.id - The session ID without any cluster node extensionSessionIdManager#invalidateAll(String)public void renewSessionId(String oldClusterId, String oldNodeId, HttpServletRequest request)
SessionIdManagerrenewSessionId in interface SessionIdManagerrenewSessionId in class AbstractSessionIdManagerCopyright © 1995-2015 Webtide. All Rights Reserved.