Package org.eclipse.jetty.session
Class AbstractSessionCacheFactory
java.lang.Object
org.eclipse.jetty.session.AbstractSessionCacheFactory
- All Implemented Interfaces:
SessionCacheFactory
- Direct Known Subclasses:
DefaultSessionCacheFactory
,NullSessionCacheFactory
AbstractSessionCacheFactory
Base class for SessionCacheFactories.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the evictionPolicy.getSessionCache
(SessionManager manager) boolean
boolean
boolean
boolean
boolean
abstract SessionCache
newSessionCache
(SessionManager manager) void
setEvictionPolicy
(int evictionPolicy) Set the evictionPolicy to set.void
setFlushOnResponseCommit
(boolean flushOnResponseCommit) Set the flushOnResponseCommit to set.void
setInvalidateOnShutdown
(boolean invalidateOnShutdown) void
setRemoveUnloadableSessions
(boolean removeUnloadableSessions) Set the removeUnloadableSessions to set.void
setSaveOnCreate
(boolean saveOnCreate) Set the saveOnCreate to set.void
setSaveOnInactiveEviction
(boolean saveOnInactiveEvict) Set the saveOnInactiveEvict to set.
-
Constructor Details
-
AbstractSessionCacheFactory
public AbstractSessionCacheFactory()
-
-
Method Details
-
newSessionCache
-
isInvalidateOnShutdown
public boolean isInvalidateOnShutdown() -
setInvalidateOnShutdown
public void setInvalidateOnShutdown(boolean invalidateOnShutdown) -
isFlushOnResponseCommit
public boolean isFlushOnResponseCommit()- Returns:
- the flushOnResponseCommit
-
setFlushOnResponseCommit
public void setFlushOnResponseCommit(boolean flushOnResponseCommit) Set the flushOnResponseCommit to set.- Parameters:
flushOnResponseCommit
- the flushOnResponseCommit to set
-
isSaveOnCreate
public boolean isSaveOnCreate()- Returns:
- the saveOnCreate
-
setSaveOnCreate
public void setSaveOnCreate(boolean saveOnCreate) Set the saveOnCreate to set.- Parameters:
saveOnCreate
- the saveOnCreate to set
-
isRemoveUnloadableSessions
public boolean isRemoveUnloadableSessions()- Returns:
- the removeUnloadableSessions
-
setRemoveUnloadableSessions
public void setRemoveUnloadableSessions(boolean removeUnloadableSessions) Set the removeUnloadableSessions to set.- Parameters:
removeUnloadableSessions
- the removeUnloadableSessions to set
-
getEvictionPolicy
public int getEvictionPolicy()Get the evictionPolicy.- Returns:
- the evictionPolicy
-
setEvictionPolicy
public void setEvictionPolicy(int evictionPolicy) Set the evictionPolicy to set.- Parameters:
evictionPolicy
- the evictionPolicy to set
-
isSaveOnInactiveEviction
public boolean isSaveOnInactiveEviction()- Returns:
- the saveOnInactiveEvict
-
setSaveOnInactiveEviction
public void setSaveOnInactiveEviction(boolean saveOnInactiveEvict) Set the saveOnInactiveEvict to set.- Parameters:
saveOnInactiveEvict
- the saveOnInactiveEvict to set
-
getSessionCache
- Specified by:
getSessionCache
in interfaceSessionCacheFactory
-