Package org.eclipse.jetty.server.session
Class DefaultSessionCacheFactory
- java.lang.Object
-
- org.eclipse.jetty.server.session.DefaultSessionCacheFactory
-
- All Implemented Interfaces:
SessionCacheFactory
public class DefaultSessionCacheFactory extends java.lang.Object implements SessionCacheFactory
DefaultSessionCacheFactory Factory for creating new DefaultSessionCaches.
-
-
Constructor Summary
Constructors Constructor Description DefaultSessionCacheFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEvictionPolicy()SessionCachegetSessionCache(SessionHandler handler)booleanisRemoveUnloadableSessions()booleanisSaveOnCreate()booleanisSaveOnInactiveEvict()voidsetEvictionPolicy(int evictionPolicy)voidsetRemoveUnloadableSessions(boolean removeUnloadableSessions)voidsetSaveOnCreate(boolean saveOnCreate)voidsetSaveOnInactiveEvict(boolean saveOnInactiveEvict)
-
-
-
Method Detail
-
isSaveOnCreate
public boolean isSaveOnCreate()
- Returns:
- the saveOnCreate
-
setSaveOnCreate
public void setSaveOnCreate(boolean saveOnCreate)
- Parameters:
saveOnCreate- the saveOnCreate to set
-
isRemoveUnloadableSessions
public boolean isRemoveUnloadableSessions()
- Returns:
- the removeUnloadableSessions
-
setRemoveUnloadableSessions
public void setRemoveUnloadableSessions(boolean removeUnloadableSessions)
- Parameters:
removeUnloadableSessions- the removeUnloadableSessions to set
-
getEvictionPolicy
public int getEvictionPolicy()
- Returns:
- the evictionPolicy
-
setEvictionPolicy
public void setEvictionPolicy(int evictionPolicy)
- Parameters:
evictionPolicy- the evictionPolicy to set
-
isSaveOnInactiveEvict
public boolean isSaveOnInactiveEvict()
- Returns:
- the saveOnInactiveEvict
-
setSaveOnInactiveEvict
public void setSaveOnInactiveEvict(boolean saveOnInactiveEvict)
- Parameters:
saveOnInactiveEvict- the saveOnInactiveEvict to set
-
getSessionCache
public SessionCache getSessionCache(SessionHandler handler)
- Specified by:
getSessionCachein interfaceSessionCacheFactory- See Also:
SessionCacheFactory.getSessionCache(org.eclipse.jetty.server.session.SessionHandler)
-
-