public interface SessionIdManager extends LifeCycle
LifeCycle.Listener
Modifier and Type | Method and Description |
---|---|
void |
addSession(HttpSession session)
Add a session to the list of known sessions for a given ID.
|
String |
getClusterId(String nodeId)
Get a cluster ID from a node ID.
|
String |
getNodeId(String clusterId,
HttpServletRequest request)
Get a node ID from a cluster ID and a request
|
String |
getWorkerName() |
boolean |
idInUse(String id) |
void |
invalidateAll(String id)
Call
HttpSession.invalidate() on all known sessions for the given id. |
String |
newSessionId(HttpServletRequest request,
long created) |
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.
|
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
boolean idInUse(String id)
id
- The session ID without any cluster node extensionvoid addSession(HttpSession session)
session
- The sessionvoid removeSession(HttpSession session)
session
- void invalidateAll(String id)
HttpSession.invalidate()
on all known sessions for the given id.id
- The session ID without any cluster node extensionString newSessionId(HttpServletRequest request, long created)
request
- created
- String getWorkerName()
String getClusterId(String nodeId)
nodeId
- String getNodeId(String clusterId, HttpServletRequest request)
clusterId
- The ID of the sessionrequest
- The request that for the session (or null)void renewSessionId(String oldClusterId, String oldNodeId, HttpServletRequest request)
oldClusterId
- oldNodeId
- request
- Copyright © 1995-2015 Webtide. All Rights Reserved.