Package org.eclipse.jetty.server.session
Interface SessionDataStore
- All Superinterfaces:
LifeCycle,SessionDataMap
- All Known Implementing Classes:
AbstractSessionDataStore,CachingSessionDataStore,FileSessionDataStore,JDBCSessionDataStore,NullSessionDataStore
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
SessionDataStore
A store for the data contained in a Session object. The store
would usually be persistent.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Test if data exists for a given session id.getExpired(Set<String> candidates) Deprecated.Called periodically, this method should search the data store for sessions that have been expired for a 'reasonable' amount of time.booleanDeprecated.True if this type of datastore will passivate session objectsnewSessionData(String id, long created, long accessed, long lastAccessed, long maxInactiveMs) Deprecated.Create a new SessionDataMethods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopMethods inherited from interface org.eclipse.jetty.server.session.SessionDataMap
delete, initialize, load, store
-
Method Details
-
newSessionData
SessionData newSessionData(String id, long created, long accessed, long lastAccessed, long maxInactiveMs) Deprecated.Create a new SessionData- Parameters:
id- the idcreated- the timestamp when createdaccessed- the timestamp when accessedlastAccessed- the timestamp when last accessedmaxInactiveMs- the max inactive time in milliseconds- Returns:
- a new SessionData object
-
getExpired
Deprecated.Called periodically, this method should search the data store for sessions that have been expired for a 'reasonable' amount of time.- Parameters:
candidates- if provided, these are keys of sessions that the SessionDataStore thinks has expired and should be verified by the SessionDataStore- Returns:
- set of session ids
-
isPassivating
boolean isPassivating()Deprecated.True if this type of datastore will passivate session objects- Returns:
- true if this store can passivate sessions, false otherwise
-
exists
Deprecated.Test if data exists for a given session id.- Parameters:
id- Identity of session whose existence should be checked- Returns:
- true if valid, non-expired session exists
- Throws:
Exception- if problem checking existence with persistence layer
-