Package org.eclipse.jetty.server.session
Class CachingSessionDataStoreFactory
- java.lang.Object
-
- org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
-
- org.eclipse.jetty.server.session.CachingSessionDataStoreFactory
-
- All Implemented Interfaces:
SessionDataStoreFactory
public class CachingSessionDataStoreFactory extends AbstractSessionDataStoreFactory
CachingSessionDataStoreFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected SessionDataMapFactory
_mapFactory
protected SessionDataStoreFactory
_sessionStoreFactory
The SessionDataStore that will store session data.
-
Constructor Summary
Constructors Constructor Description CachingSessionDataStoreFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionDataMapFactory
getMapFactory()
SessionDataStore
getSessionDataStore(SessionHandler handler)
void
setSessionDataMapFactory(SessionDataMapFactory mapFactory)
void
setSessionStoreFactory(SessionDataStoreFactory factory)
-
Methods inherited from class org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
getGracePeriodSec, getSavePeriodSec, setGracePeriodSec, setSavePeriodSec
-
-
-
-
Field Detail
-
_sessionStoreFactory
protected SessionDataStoreFactory _sessionStoreFactory
The SessionDataStore that will store session data.
-
_mapFactory
protected SessionDataMapFactory _mapFactory
-
-
Method Detail
-
getMapFactory
public SessionDataMapFactory getMapFactory()
- Returns:
- the SessionDataMapFactory
-
setSessionDataMapFactory
public void setSessionDataMapFactory(SessionDataMapFactory mapFactory)
- Parameters:
mapFactory
- the SessionDataMapFactory
-
setSessionStoreFactory
public void setSessionStoreFactory(SessionDataStoreFactory factory)
- Parameters:
factory
- The factory for the actual SessionDataStore that the CachingSessionDataStore will delegate to
-
getSessionDataStore
public SessionDataStore getSessionDataStore(SessionHandler handler) throws java.lang.Exception
- Throws:
java.lang.Exception
- See Also:
SessionDataStoreFactory.getSessionDataStore(org.eclipse.jetty.server.session.SessionHandler)
-
-