public interface SessionDataStore extends SessionDataMap
LifeCycle.Listener
Modifier and Type | Method and Description |
---|---|
boolean |
exists(java.lang.String id)
Test if data exists for a given session id.
|
java.util.Set<java.lang.String> |
getExpired(java.util.Set<java.lang.String> candidates)
Called periodically, this method should search the data store
for sessions that have been expired for a 'reasonable' amount
of time.
|
boolean |
isPassivating()
True if this type of datastore will passivate session objects
|
SessionData |
newSessionData(java.lang.String id,
long created,
long accessed,
long lastAccessed,
long maxInactiveMs)
Create a new SessionData
|
delete, initialize, load, store
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stop
SessionData newSessionData(java.lang.String id, long created, long accessed, long lastAccessed, long maxInactiveMs)
id
- the idcreated
- the timestamp when createdaccessed
- the timestamp when accessedlastAccessed
- the timestamp when last accessedmaxInactiveMs
- the max inactive time in millisecondsjava.util.Set<java.lang.String> getExpired(java.util.Set<java.lang.String> candidates)
candidates
- if provided, these are keys of sessions that
the SessionDataStore thinks has expired and should be verified by the
SessionDataStoreboolean isPassivating()
boolean exists(java.lang.String id) throws java.lang.Exception
id
- Identity of session whose existence should be checkedjava.lang.Exception
- if problem checking existence with persistence layerCopyright © 1995–2023 Webtide. All rights reserved.