Class AbstractSessionCache

java.lang.Object
com.aspectran.core.component.AbstractComponent
com.aspectran.core.component.session.AbstractSessionCache
All Implemented Interfaces:
Component, SessionCache
Direct Known Subclasses:
DefaultSessionCache

public abstract class AbstractSessionCache extends AbstractComponent implements SessionCache
A base implementation of the SessionCache interface for managing a set of Session objects pertaining to a context in memory.

Created: 2017. 6. 24.

  • Constructor Details

  • Method Details

    • getSessionManager

      protected SessionManager getSessionManager()
    • getSessionStore

      protected SessionStore getSessionStore()
    • getSessionStoreName

      protected String getSessionStoreName()
    • getStatistics

      protected SessionStatistics getStatistics()
    • isClusterEnabled

      public boolean isClusterEnabled()
      Specified by:
      isClusterEnabled in interface SessionCache
    • getEvictionIdleSecs

      public int getEvictionIdleSecs()
      Specified by:
      getEvictionIdleSecs in interface SessionCache
      Returns:
      the interval in seconds to evict inactive sessions from cache
    • setEvictionIdleSecs

      public void setEvictionIdleSecs(int evictionIdleSecs)
      Sessions in this cache can be:
      -1: never evicted
      means we never evict inactive sessions.
      0: evicted once the last request exits
      means we evict a session after the last request for it exits.
      > 0: evicted after a configurable period of inactivity
      the number of seconds after which we evict inactive sessions from the cache.