| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| protected Random | |
| pack-priv MultiMap | |
| private boolean | |
| private String | |
| protected static final String | |
| protected static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSession(HttpSession
The session session)Implements org. |
| protected void | |
| protected void | |
| public String | Returns: sessionId without any worker ID.Implements org. |
| public String | Returns: sessionId plus any worker ID.The ID of the session clusterId, HttpServletRequest request)Implements org. |
| public Random | |
| public String | Returns: String or nullImplements org. |
| public boolean | idInUse(String
The session ID without any cluster node extension id)Implements org. |
| public void | invalidateAll(String
The session ID without any cluster node extension id)Implements org. HttpSession#invalidate() on all known sessions for the given id.
|
| public String | newSessionId(HttpServletRequest request, long created)
Implements org. |
| public void | removeSession(HttpSession session)
Implements org. |
| public void | |
| public void |
| __NEW_SESSION_ID | back to summary |
|---|---|
| private static final String __NEW_SESSION_ID | |
| _random | back to summary |
|---|---|
| protected Random _random | |
| _sessions | back to summary |
|---|---|
| pack-priv MultiMap<String> _sessions | |
| _weakRandom | back to summary |
|---|---|
| private boolean _weakRandom | |
| _workerName | back to summary |
|---|---|
| private String _workerName | |
| SESSION_ID_RANDOM_ALGORITHM | back to summary |
|---|---|
| protected static final String SESSION_ID_RANDOM_ALGORITHM | |
| SESSION_ID_RANDOM_ALGORITHM_ALT | back to summary |
|---|---|
| protected static final String SESSION_ID_RANDOM_ALGORITHM_ALT | |
| HashSessionIdManager | back to summary |
|---|---|
| public HashSessionIdManager() | |
| HashSessionIdManager | back to summary |
|---|---|
| public HashSessionIdManager(Random random) | |
| addSession | back to summary |
|---|---|
| public void addSession(HttpSession session) Implements org. Doc from org. Add a session to the list of known sessions for a given ID.
| |
| doStart | back to summary |
|---|---|
| protected void doStart() | |
| doStop | back to summary |
|---|---|
| protected void doStop() | |
| getClusterId | back to summary |
|---|---|
| public String getClusterId(String nodeId) Implements org. Get the session ID without any worker ID.
| |
| getNodeId | back to summary |
|---|---|
| public String getNodeId(String clusterId, HttpServletRequest request) Implements org. Get the session ID with any worker ID.
| |
| getRandom | back to summary |
|---|---|
| public Random getRandom() | |
| getWorkerName | back to summary |
|---|---|
| public String getWorkerName() Implements org. Get the workname. If set, the workername is dot appended to the session ID and can be used to assist session affinity in a load balancer.
| |
| idInUse | back to summary |
|---|---|
| public boolean idInUse(String id) Implements org.
| |
| invalidateAll | back to summary |
|---|---|
| public void invalidateAll(String id) Implements org. Doc from org. Call
| |
| newSessionId | back to summary |
|---|---|
| public String newSessionId(HttpServletRequest request, long created) Implements org. | |
| removeSession | back to summary |
|---|---|
| public void removeSession(HttpSession session) Implements org. Doc from org. Remove session from the list of known sessions for a given ID. | |
| setRandom | back to summary |
|---|---|
| public void setRandom(Random random) | |
| setWorkerName | back to summary |
|---|---|
| public void setWorkerName(String workerName) Set the workname. If set, the workername is dot appended to the session ID and can be used to assist session affinity in a load balancer. | |