ComponentAbstractSessionDataStore, FileSessionDataStorepublic interface SessionDataStore extends Component
Created: 2017. 6. 15.
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
delete(java.lang.String id) |
Delete session data.
|
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 |
load(java.lang.String id) |
Read in session data.
|
SessionData |
newSessionData(java.lang.String id,
long createdTime,
long accessedTime,
long lastAccessedTime,
long maxInactiveIntervalMS) |
Create a new SessionData.
|
void |
store(java.lang.String id,
SessionData sessionData) |
Store the session data.
|
destroy, getComponentName, initialize, isAvailable, isDestroyed, isInitializedSessionData load(java.lang.String id) throws java.lang.Exception
id - identity of session to loadjava.lang.Exception - if unable to load session datavoid store(java.lang.String id,
SessionData sessionData)
throws java.lang.Exception
id - identity of session to storesessionData - info of session to storejava.lang.Exception - if unable to write session databoolean delete(java.lang.String id)
throws java.lang.Exception
id - identity of session to deletejava.lang.Exception - if unable to delete session databoolean exists(java.lang.String id)
throws java.lang.Exception
id - Identity of session whose existence should be checkedjava.lang.Exception - if there is a problem checking the existence with persistence layerSessionData newSessionData(java.lang.String id, long createdTime, long accessedTime, long lastAccessedTime, long maxInactiveIntervalMS)
id - the idcreatedTime - the timestamp when createdaccessedTime - the timestamp when accessedlastAccessedTime - the timestamp when last accessedmaxInactiveIntervalMS - 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()
Copyright © 2008–2018 The Aspectran Project. All rights reserved.