Class JmixExpiringSessionMap

java.lang.Object
java.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap<String,org.springframework.session.Session>
io.jmix.sessions.impl.JmixExpiringSessionMap
All Implemented Interfaces:
Serializable, ConcurrentMap<String,org.springframework.session.Session>, Map<String,org.springframework.session.Session>, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class JmixExpiringSessionMap extends ConcurrentHashMap<String,org.springframework.session.Session> implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Map implementation for MapSessionRepository that periodically removes expired sessions.
See Also:
  • Field Details

    • cleanupEnabled

      protected Boolean cleanupEnabled
    • cleanupTimeout

      protected Duration cleanupTimeout
    • applicationEventPublisher

      protected org.springframework.context.ApplicationEventPublisher applicationEventPublisher
  • Constructor Details

    • JmixExpiringSessionMap

      public JmixExpiringSessionMap(org.springframework.context.ApplicationEventPublisher applicationEventPublisher, SessionsProperties properties)
  • Method Details

    • setCleanupTimeout

      public void setCleanupTimeout(Duration cleanupTimeout)
    • cleanUpExpiredSessions

      public void cleanUpExpiredSessions()
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception