Class InfinispanSessionDataStore
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.session.AbstractSessionDataStore
org.eclipse.jetty.session.infinispan.InfinispanSessionDataStore
- All Implemented Interfaces:
org.eclipse.jetty.server.session.SessionDataMap,org.eclipse.jetty.server.session.SessionDataStore,org.eclipse.jetty.util.component.Container,org.eclipse.jetty.util.component.Destroyable,org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.Dumpable.DumpableContainer,org.eclipse.jetty.util.component.LifeCycle
@ManagedObject
public class InfinispanSessionDataStore
extends org.eclipse.jetty.server.session.AbstractSessionDataStore
InfinispanSessionDataStore
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.server.session.AbstractSessionDataStore
_context, _gracePeriodSec, _lastExpiryCheckTime, _lastOrphanSweepTime, _savePeriodSec, DEFAULT_GRACE_PERIOD_SEC, DEFAULT_SAVE_PERIOD_SECFields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoCheckExpired(Set<String> candidates, long time) voiddoCleanOrphans(long timeLimit) booleandoGetExpired(long time) org.eclipse.jetty.server.session.SessionDataprotected voiddoStart()voidorg.infinispan.commons.api.BasicCache<String,InfinispanSessionData> getCache()Get the clustered cache instance.getCacheKey(String id) intbooleanorg.eclipse.jetty.server.session.SessionDatanewSessionData(String id, long created, long accessed, long lastAccessed, long maxInactiveMs) voidsetCache(org.infinispan.commons.api.BasicCache<String, InfinispanSessionData> cache) Set the clustered cache instance.voidsetInfinispanIdleTimeoutSec(int sec) voidsetQueryManager(QueryManager queryManager) voidsetSerialization(boolean serialization) toString()Methods inherited from class org.eclipse.jetty.server.session.AbstractSessionDataStore
checkStarted, cleanOrphans, exists, getExpired, getGracePeriodSec, getSavePeriodSec, initialize, load, setGracePeriodSec, setSavePeriodSec, storeMethods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStop, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListenersMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelfMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpableMethods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
-
Constructor Details
-
InfinispanSessionDataStore
public InfinispanSessionDataStore()
-
-
Method Details
-
getCache
Get the clustered cache instance.- Returns:
- the cache
-
setCache
Set the clustered cache instance.- Parameters:
cache- the cache
-
doStart
- Overrides:
doStartin classorg.eclipse.jetty.server.session.AbstractSessionDataStore- Throws:
Exception
-
getQueryManager
-
setQueryManager
-
doLoad
- Specified by:
doLoadin classorg.eclipse.jetty.server.session.AbstractSessionDataStore- Throws:
Exception
-
delete
- Throws:
Exception
-
doCheckExpired
- Specified by:
doCheckExpiredin classorg.eclipse.jetty.server.session.AbstractSessionDataStore
-
doGetExpired
- Specified by:
doGetExpiredin classorg.eclipse.jetty.server.session.AbstractSessionDataStore
-
doCleanOrphans
public void doCleanOrphans(long timeLimit) - Specified by:
doCleanOrphansin classorg.eclipse.jetty.server.session.AbstractSessionDataStore
-
doStore
public void doStore(String id, org.eclipse.jetty.server.session.SessionData data, long lastSaveTime) throws Exception - Specified by:
doStorein classorg.eclipse.jetty.server.session.AbstractSessionDataStore- Throws:
Exception
-
getCacheKey
-
isPassivating
@ManagedAttribute(value="does store serialize sessions", readonly=true) public boolean isPassivating() -
doExists
- Specified by:
doExistsin classorg.eclipse.jetty.server.session.AbstractSessionDataStore- Throws:
Exception
-
newSessionData
public org.eclipse.jetty.server.session.SessionData newSessionData(String id, long created, long accessed, long lastAccessed, long maxInactiveMs) - Specified by:
newSessionDatain interfaceorg.eclipse.jetty.server.session.SessionDataStore- Overrides:
newSessionDatain classorg.eclipse.jetty.server.session.AbstractSessionDataStore
-
setInfinispanIdleTimeoutSec
public void setInfinispanIdleTimeoutSec(int sec) - Parameters:
sec- the infinispan-specific idle timeout in sec or 0 if not set
-
getInfinispanIdleTimeoutSec
@ManagedAttribute(value="infinispan idle timeout sec", readonly=true) public int getInfinispanIdleTimeoutSec() -
setSerialization
public void setSerialization(boolean serialization) -
toString
- Overrides:
toStringin classorg.eclipse.jetty.server.session.AbstractSessionDataStore
-