Class InfinispanSessionManager<DC,MV,AV,SC>

java.lang.Object
org.wildfly.clustering.session.cache.AbstractSessionManager<DC,MV,AV,SC>
org.wildfly.clustering.session.infinispan.embedded.InfinispanSessionManager<DC,MV,AV,SC>
Type Parameters:
DC - the deployment context type
MV - the meta-data value type
AV - the attributes value type
SC - the session context type
All Implemented Interfaces:
org.wildfly.clustering.server.manager.Manager<String>, org.wildfly.clustering.server.manager.ManagerConfiguration<String>, org.wildfly.clustering.server.service.Service, org.wildfly.clustering.session.SessionManager<SC>, org.wildfly.clustering.session.SessionStatistics

public class InfinispanSessionManager<DC,MV,AV,SC> extends org.wildfly.clustering.session.cache.AbstractSessionManager<DC,MV,AV,SC>
A session manager implementation backed by an embedded Infinispan cache.
Author:
Paul Ferraro
  • Field Summary

    Fields inherited from class org.wildfly.clustering.session.cache.AbstractSessionManager

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    InfinispanSessionManager(org.wildfly.clustering.session.infinispan.embedded.InfinispanSessionManager.Configuration<DC,MV,AV,SC> configuration)
    Creates a session manager using the specified configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    CompletionStage<org.wildfly.clustering.session.Session<SC>>
     
     
     
    org.wildfly.clustering.session.SessionStatistics
     
    void
     

    Methods inherited from class org.wildfly.clustering.session.cache.AbstractSessionManager

    createSessionAsync, findImmutableSessionAsync, getBatchFactory, getDetachedSession, getIdentifierFactory, isStarted, start

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.wildfly.clustering.session.SessionManager

    createSession, createSession, createSessionAsync, findImmutableSession, findSession

    Methods inherited from interface org.wildfly.clustering.session.SessionStatistics

    getActiveSessionCount
  • Constructor Details

    • InfinispanSessionManager

      public InfinispanSessionManager(org.wildfly.clustering.session.infinispan.embedded.InfinispanSessionManager.Configuration<DC,MV,AV,SC> configuration)
      Creates a session manager using the specified configuration.
      Parameters:
      configuration - the configuration of this session manager
  • Method Details

    • stop

      public void stop()
      Specified by:
      stop in interface org.wildfly.clustering.server.service.Service
      Overrides:
      stop in class org.wildfly.clustering.session.cache.AbstractSessionManager<DC,MV,AV,SC>
    • findSessionAsync

      public CompletionStage<org.wildfly.clustering.session.Session<SC>> findSessionAsync(String id)
      Specified by:
      findSessionAsync in interface org.wildfly.clustering.session.SessionManager<DC>
      Overrides:
      findSessionAsync in class org.wildfly.clustering.session.cache.AbstractSessionManager<DC,MV,AV,SC>
    • getStatistics

      public org.wildfly.clustering.session.SessionStatistics getStatistics()
      Specified by:
      getStatistics in interface org.wildfly.clustering.session.SessionManager<DC>
      Overrides:
      getStatistics in class org.wildfly.clustering.session.cache.AbstractSessionManager<DC,MV,AV,SC>
    • getActiveSessions

      public Set<String> getActiveSessions()
    • getSessions

      public Set<String> getSessions()