org.eclipse.jetty.util.component.LifeCycle, SessionDataMapAbstractSessionDataStore, CachingSessionDataStore, FileSessionDataStore, JDBCSessionDataStore, NullSessionDataStorepublic interface SessionDataStore extends SessionDataMap
| Modifier and Type | Method | 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
|
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stopdelete, initialize, load, storeSessionData 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–2018 Webtide. All rights reserved.