| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | delete(String
identity of session to delete id)Implements org. |
| public Set | doCheckExpired(Set<String>
the ids of sessions the SessionCache thinks has expired candidates, long the time at which to check for expiry time)Implements abstract org. |
| public void | doCleanOrphans(long
the upper limit of the expiry time to check in msec timeLimit)Implements abstract org. |
| public boolean | doExists(String
the session id to check id)Implements abstract org. |
| public Set | doGetExpired(long
the upper limit of expiry times to check. Sessions expired
at or before this timestamp will match. timeLimit)Implements abstract org. |
| public SessionData | doLoad(String
the id of the session to load id)Implements abstract org. |
| public void | doStore(String
identity of session to store id, SessionData info of the session data, long time of previous save or 0 if never saved lastSaveTime)Implements abstract org. |
| public boolean | isPassivating()
Implements org. |
| public SessionData | newSessionData(String
the id id, long the timestamp when created created, long the timestamp when accessed accessed, long the timestamp when last accessed lastAccessed, long the max inactive time in milliseconds maxInactiveMs)Overrides org. Implements org. |
| NullSessionDataStore | back to summary |
|---|---|
| public NullSessionDataStore() | |
| delete | back to summary |
|---|---|
| public boolean delete(String id) throws Exception Implements org. Doc from org. Delete session data | |
| doCheckExpired | back to summary |
|---|---|
| public Set Implements abstract org. Doc from org. Implemented by subclasses to resolve which sessions in this context that are being managed by this node that should be expired. | |
| doCleanOrphans | back to summary |
|---|---|
| public void doCleanOrphans(long timeLimit) Implements abstract org. Doc from org. Implemented by subclasses to delete sessions for other contexts that expired at or before the timeLimit. These are 'orphaned' sessions that are no longer being actively managed by any node. These are explicitly sessions that do NOT belong to this context (other mechanisms such as doGetExpired take care of those). As they don't belong to this context, they cannot be loaded by us. This is called only periodically to avoid placing excessive load on the store.
| |
| doExists | back to summary |
|---|---|
| public boolean doExists(String id) Implements abstract org. Doc from org. Check if a session for the given id exists. | |
| doGetExpired | back to summary |
|---|---|
| public Set Implements abstract org. Doc from org. Implemented by subclasses to find sessions for this context in the store that expired at or before the time limit and thus not being actively managed by any node. This method is only called periodically (the period is configurable) to avoid putting too much load on the store. | |
| doLoad | back to summary |
|---|---|
| public SessionData doLoad(String id) throws Exception Implements abstract org. Doc from org. Load the session from persistent store.
| |
| doStore | back to summary |
|---|---|
| public void doStore(String id, SessionData data, long lastSaveTime) throws Exception Implements abstract org. Doc from org. Store the session data persistently.
| |
| isPassivating | back to summary |
|---|---|
| public boolean isPassivating() Implements org. Doc from org. True if this type of datastore will passivate session objects
| |
| newSessionData | back to summary |
|---|---|
| public SessionData newSessionData(String id, long created, long accessed, long lastAccessed, long maxInactiveMs) Overrides org. Implements org. Doc from org. Create a new SessionData
| |