Class InfinispanSessionDataStoreFactory
- java.lang.Object
-
- org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
-
- org.eclipse.jetty.session.infinispan.InfinispanSessionDataStoreFactory
-
- All Implemented Interfaces:
SessionDataStoreFactory
public class InfinispanSessionDataStoreFactory extends AbstractSessionDataStoreFactory
InfinispanSessionDataStoreFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected QueryManager
_queryManager
protected boolean
_serialization
-
Constructor Summary
Constructors Constructor Description InfinispanSessionDataStoreFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.commons.api.BasicCache<java.lang.String,SessionData>
getCache()
Get the clustered cache instance.int
getInfinispanIdleTimeoutSec()
QueryManager
getQueryManager()
boolean
getSerialization()
SessionDataStore
getSessionDataStore(SessionHandler handler)
void
setCache(org.infinispan.commons.api.BasicCache<java.lang.String,SessionData> cache)
Set the clustered cache instance.void
setInfinispanIdleTimeoutSec(int infinispanIdleTimeoutSec)
void
setQueryManager(QueryManager queryManager)
void
setSerialization(boolean serialization)
-
Methods inherited from class org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
getGracePeriodSec, getSavePeriodSec, setGracePeriodSec, setSavePeriodSec
-
-
-
-
Field Detail
-
_queryManager
protected QueryManager _queryManager
-
_serialization
protected boolean _serialization
-
-
Method Detail
-
getInfinispanIdleTimeoutSec
public int getInfinispanIdleTimeoutSec()
- Returns:
- the infinispanIdleTimeoutSec
-
setInfinispanIdleTimeoutSec
public void setInfinispanIdleTimeoutSec(int infinispanIdleTimeoutSec)
- Parameters:
infinispanIdleTimeoutSec
- the infinispanIdleTimeoutSec to set
-
getSessionDataStore
public SessionDataStore getSessionDataStore(SessionHandler handler) throws java.lang.Exception
- Throws:
java.lang.Exception
- See Also:
SessionDataStoreFactory.getSessionDataStore(org.eclipse.jetty.server.session.SessionHandler)
-
getCache
public org.infinispan.commons.api.BasicCache<java.lang.String,SessionData> getCache()
Get the clustered cache instance.- Returns:
- the cache
-
setCache
public void setCache(org.infinispan.commons.api.BasicCache<java.lang.String,SessionData> cache)
Set the clustered cache instance.- Parameters:
cache
- the cache
-
getQueryManager
public QueryManager getQueryManager()
-
setQueryManager
public void setQueryManager(QueryManager queryManager)
-
setSerialization
public void setSerialization(boolean serialization)
-
getSerialization
public boolean getSerialization()
-
-