SessionDataMap, SessionDataStore, org.eclipse.jetty.util.component.LifeCycle@ManagedObject public class NullSessionDataStore extends AbstractSessionDataStore
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerFAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING_context, _gracePeriodSec, _lastExpiryCheckTime, _savePeriodSec| Constructor | Description |
|---|---|
NullSessionDataStore() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
delete(java.lang.String id) |
Delete session data
|
java.util.Set<java.lang.String> |
doGetExpired(java.util.Set<java.lang.String> candidates) |
Implemented by subclasses to resolve which sessions this node
should attempt to expire.
|
void |
doStore(java.lang.String id,
SessionData data,
long lastSaveTime) |
Store the session data persistently.
|
boolean |
exists(java.lang.String id) |
Test if data exists for a given session id.
|
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 created,
long accessed,
long lastAccessed,
long maxInactiveMs) |
Create a new SessionData
|
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopcheckStarted, doStart, getExpired, getGracePeriodSec, getSavePeriodSec, initialize, setGracePeriodSec, setSavePeriodSec, store, toStringaddBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeanspublic SessionData load(java.lang.String id) throws java.lang.Exception
SessionDataMapid - identity of session to loadjava.lang.Exception - if unable to load session dataSessionDataMap.load(java.lang.String)public SessionData newSessionData(java.lang.String id, long created, long accessed, long lastAccessed, long maxInactiveMs)
SessionDataStorenewSessionData in interface SessionDataStorenewSessionData in class AbstractSessionDataStoreid - the idcreated - the timestamp when createdaccessed - the timestamp when accessedlastAccessed - the timestamp when last accessedmaxInactiveMs - the max inactive time in millisecondsAbstractSessionDataStore.newSessionData(java.lang.String, long, long, long, long)public boolean delete(java.lang.String id)
throws java.lang.Exception
SessionDataMapid - identity of session to deletejava.lang.Exception - if unable to delete session dataSessionDataMap.delete(java.lang.String)public void doStore(java.lang.String id,
SessionData data,
long lastSaveTime)
throws java.lang.Exception
AbstractSessionDataStoredoStore in class AbstractSessionDataStoreid - identity of session to storedata - info of the sessionlastSaveTime - time of previous save or 0 if never savedjava.lang.Exception - if unable to store dataAbstractSessionDataStore.doStore(java.lang.String, org.eclipse.jetty.server.session.SessionData, long)public java.util.Set<java.lang.String> doGetExpired(java.util.Set<java.lang.String> candidates)
AbstractSessionDataStoredoGetExpired in class AbstractSessionDataStorecandidates - the ids of sessions the SessionDataStore thinks has expiredSessionDataStore.getExpired(Set)@ManagedAttribute(value="does this store serialize sessions",
readonly=true)
public boolean isPassivating()
SessionDataStoreSessionDataStore.isPassivating()public boolean exists(java.lang.String id)
SessionDataStoreid - Identity of session whose existence should be checkedSessionDataStore.exists(java.lang.String)Copyright © 1995–2018 Webtide. All rights reserved.