Class InfinispanSessionManager<SC,​MV,​AV,​LC>

  • Type Parameters:
    SC - the ServletContext specification type
    MV - the meta-data value type
    AV - the attributes value type
    LC - the local context type
    All Implemented Interfaces:
    org.wildfly.clustering.ee.Restartable, org.wildfly.clustering.web.session.ActiveSessionStatistics, org.wildfly.clustering.web.session.SessionManager<LC,​org.wildfly.clustering.ee.cache.tx.TransactionBatch>

    public class InfinispanSessionManager<SC,​MV,​AV,​LC>
    extends Object
    implements org.wildfly.clustering.web.session.SessionManager<LC,​org.wildfly.clustering.ee.cache.tx.TransactionBatch>
    Generic session manager implementation - independent of cache mapping strategy.
    Author:
    Paul Ferraro
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface org.wildfly.clustering.ee.Restartable
      • stop

        public void stop()
        Specified by:
        stop in interface org.wildfly.clustering.ee.Restartable
      • getStopTimeout

        public Duration getStopTimeout()
        Specified by:
        getStopTimeout in interface org.wildfly.clustering.web.session.SessionManager<SC,​MV>
      • getBatcher

        public org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.cache.tx.TransactionBatch> getBatcher()
        Specified by:
        getBatcher in interface org.wildfly.clustering.web.session.SessionManager<SC,​MV>
      • getDefaultMaxInactiveInterval

        public Duration getDefaultMaxInactiveInterval()
        Specified by:
        getDefaultMaxInactiveInterval in interface org.wildfly.clustering.web.session.SessionManager<SC,​MV>
      • setDefaultMaxInactiveInterval

        public void setDefaultMaxInactiveInterval​(Duration duration)
        Specified by:
        setDefaultMaxInactiveInterval in interface org.wildfly.clustering.web.session.SessionManager<SC,​MV>
      • getIdentifierFactory

        public Supplier<String> getIdentifierFactory()
        Specified by:
        getIdentifierFactory in interface org.wildfly.clustering.web.session.SessionManager<SC,​MV>
      • findSession

        public org.wildfly.clustering.web.session.Session<LC> findSession​(String id)
        Specified by:
        findSession in interface org.wildfly.clustering.web.session.SessionManager<SC,​MV>
      • createSession

        public org.wildfly.clustering.web.session.Session<LC> createSession​(String id)
        Specified by:
        createSession in interface org.wildfly.clustering.web.session.SessionManager<SC,​MV>
      • readSession

        public org.wildfly.clustering.web.session.ImmutableSession readSession​(String id)
        Specified by:
        readSession in interface org.wildfly.clustering.web.session.SessionManager<SC,​MV>
      • getActiveSessions

        public Set<String> getActiveSessions()
        Specified by:
        getActiveSessions in interface org.wildfly.clustering.web.session.SessionManager<SC,​MV>
      • getLocalSessions

        public Set<String> getLocalSessions()
        Specified by:
        getLocalSessions in interface org.wildfly.clustering.web.session.SessionManager<SC,​MV>
      • getActiveSessionCount

        public long getActiveSessionCount()
        Specified by:
        getActiveSessionCount in interface org.wildfly.clustering.web.session.ActiveSessionStatistics