@ManagedObject public class InfinispanSessionDataStore extends AbstractSessionDataStore
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.ListenerContainer.InheritedListener, Container.Listener_context, _gracePeriodSec, _lastExpiryCheckTime, _savePeriodSecFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING| Constructor and Description |
|---|
InfinispanSessionDataStore() |
| Modifier and Type | Method and 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.
|
org.infinispan.commons.api.BasicCache<java.lang.String,java.lang.Object> |
getCache()
Get the clustered cache instance.
|
java.lang.String |
getCacheKey(java.lang.String id) |
int |
getInfinispanIdleTimeoutSec() |
boolean |
isPassivating()
True if this type of datastore will passivate session objects
|
SessionData |
load(java.lang.String id)
Read in session data.
|
void |
setCache(org.infinispan.commons.api.BasicCache<java.lang.String,java.lang.Object> cache)
Set the clustered cache instance.
|
void |
setInfinispanIdleTimeoutSec(int sec) |
java.lang.String |
toString() |
checkStarted, doStart, getExpired, getGracePeriodSec, getSavePeriodSec, initialize, newSessionData, setGracePeriodSec, setSavePeriodSec, storeaddBean, 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, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stoppublic org.infinispan.commons.api.BasicCache<java.lang.String,java.lang.Object> getCache()
public void setCache(org.infinispan.commons.api.BasicCache<java.lang.String,java.lang.Object> cache)
cache - the cachepublic 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(String)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(String)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)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(String, SessionData, long)public java.lang.String getCacheKey(java.lang.String id)
@ManagedAttribute(value="does store serialize sessions", readonly=true) public boolean isPassivating()
SessionDataStoreSessionDataStore.isPassivating()public boolean exists(java.lang.String id)
throws java.lang.Exception
SessionDataStoreid - Identity of session whose existence should be checkedjava.lang.Exception - if problem checking existence with persistence layerSessionDataStore.exists(java.lang.String)public void setInfinispanIdleTimeoutSec(int sec)
sec - the infinispan-specific idle timeout in sec or 0 if not set@ManagedAttribute(value="infinispan idle timeout sec", readonly=true) public int getInfinispanIdleTimeoutSec()
public java.lang.String toString()
toString in class AbstractSessionDataStoreAbstractSessionDataStore.toString()Copyright © 1995–2018 Webtide. All rights reserved.