public interface SessionDataStore extends SessionDataMap
LifeCycle.Listener| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(String id)
Test if data exists for a given session id.
|
Set<String> |
getExpired(Set<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(String id,
long created,
long accessed,
long lastAccessed,
long maxInactiveMs)
Create a new SessionData
|
delete, initialize, load, storeaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stopSessionData newSessionData(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 millisecondsSet<String> getExpired(Set<String> candidates)
candidates - if provided, these are keys of sessions that
the SessionDataStore thinks has expired and should be verified by the
SessionDataStoreboolean isPassivating()
Copyright © 2010 - 2020 Adobe. All Rights Reserved