Package org.eclipse.jetty.server.session
Class AbstractSessionCacheFactory
- java.lang.Object
-
- org.eclipse.jetty.server.session.AbstractSessionCacheFactory
-
- All Implemented Interfaces:
SessionCacheFactory
- Direct Known Subclasses:
DefaultSessionCacheFactory
,NullSessionCacheFactory
public abstract class AbstractSessionCacheFactory extends java.lang.Object implements SessionCacheFactory
AbstractSessionCacheFactory Base class for SessionCacheFactories.
-
-
Constructor Summary
Constructors Constructor Description AbstractSessionCacheFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getEvictionPolicy()
SessionCache
getSessionCache(SessionHandler handler)
boolean
isFlushOnResponseCommit()
boolean
isInvalidateOnShutdown()
boolean
isRemoveUnloadableSessions()
boolean
isSaveOnCreate()
boolean
isSaveOnInactiveEvict()
abstract SessionCache
newSessionCache(SessionHandler handler)
void
setEvictionPolicy(int evictionPolicy)
void
setFlushOnResponseCommit(boolean flushOnResponseCommit)
void
setInvalidateOnShutdown(boolean invalidateOnShutdown)
void
setRemoveUnloadableSessions(boolean removeUnloadableSessions)
void
setSaveOnCreate(boolean saveOnCreate)
void
setSaveOnInactiveEvict(boolean saveOnInactiveEvict)
-
-
-
Method Detail
-
newSessionCache
public abstract SessionCache newSessionCache(SessionHandler handler)
-
isInvalidateOnShutdown
public boolean isInvalidateOnShutdown()
-
setInvalidateOnShutdown
public void setInvalidateOnShutdown(boolean invalidateOnShutdown)
-
isFlushOnResponseCommit
public boolean isFlushOnResponseCommit()
- Returns:
- the flushOnResponseCommit
-
setFlushOnResponseCommit
public void setFlushOnResponseCommit(boolean flushOnResponseCommit)
- Parameters:
flushOnResponseCommit
- the flushOnResponseCommit to set
-
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:
getSessionCache
in interfaceSessionCacheFactory
-
-