Class AbstractSessionManager<C,MV,AV,SC>

java.lang.Object
org.wildfly.clustering.session.cache.AbstractSessionManager<C,MV,AV,SC>
Type Parameters:
C - the session manager context type
MV - the session metadata value type
AV - the session attribute 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.manager.Service, org.wildfly.clustering.session.SessionManager<SC>, org.wildfly.clustering.session.SessionStatistics

public abstract class AbstractSessionManager<C,MV,AV,SC> extends Object implements org.wildfly.clustering.session.SessionManager<SC>, org.wildfly.clustering.session.SessionStatistics
An abstract SessionManager implementation that delegates most implementation details to a SessionFactory.
Author:
Paul Ferraro
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final System.Logger
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractSessionManager(org.wildfly.clustering.function.Supplier<org.wildfly.clustering.session.SessionManager<SC>> manager, org.wildfly.clustering.session.SessionManagerConfiguration<C> configuration, org.wildfly.clustering.cache.CacheConfiguration cacheConfiguration, SessionFactory<C,MV,AV,SC> factory, Consumer<org.wildfly.clustering.session.ImmutableSession> sessionCloseTask)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    CompletionStage<org.wildfly.clustering.session.Session<SC>>
     
    CompletionStage<org.wildfly.clustering.session.ImmutableSession>
     
    CompletionStage<org.wildfly.clustering.session.Session<SC>>
     
    org.wildfly.clustering.function.Supplier<org.wildfly.clustering.cache.batch.Batch>
     
    org.wildfly.clustering.session.Session<SC>
     
    org.wildfly.clustering.function.Supplier<String>
     
    org.wildfly.clustering.session.SessionStatistics
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.wildfly.clustering.server.manager.Service

    isStarted, start, stop

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

    createSession, findImmutableSession, findSession

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

    getActiveSessionCount, getActiveSessions, getSessions
  • Field Details

  • Constructor Details

    • AbstractSessionManager

      protected AbstractSessionManager(org.wildfly.clustering.function.Supplier<org.wildfly.clustering.session.SessionManager<SC>> manager, org.wildfly.clustering.session.SessionManagerConfiguration<C> configuration, org.wildfly.clustering.cache.CacheConfiguration cacheConfiguration, SessionFactory<C,MV,AV,SC> factory, Consumer<org.wildfly.clustering.session.ImmutableSession> sessionCloseTask)
  • Method Details

    • getIdentifierFactory

      public org.wildfly.clustering.function.Supplier<String> getIdentifierFactory()
      Specified by:
      getIdentifierFactory in interface org.wildfly.clustering.server.manager.ManagerConfiguration<C>
    • getBatchFactory

      public org.wildfly.clustering.function.Supplier<org.wildfly.clustering.cache.batch.Batch> getBatchFactory()
      Specified by:
      getBatchFactory in interface org.wildfly.clustering.server.manager.Manager<C>
    • createSessionAsync

      public CompletionStage<org.wildfly.clustering.session.Session<SC>> createSessionAsync(String id)
      Specified by:
      createSessionAsync in interface org.wildfly.clustering.session.SessionManager<C>
    • findSessionAsync

      public CompletionStage<org.wildfly.clustering.session.Session<SC>> findSessionAsync(String id)
      Specified by:
      findSessionAsync in interface org.wildfly.clustering.session.SessionManager<C>
    • findImmutableSessionAsync

      public CompletionStage<org.wildfly.clustering.session.ImmutableSession> findImmutableSessionAsync(String id)
      Specified by:
      findImmutableSessionAsync in interface org.wildfly.clustering.session.SessionManager<C>
    • getDetachedSession

      public org.wildfly.clustering.session.Session<SC> getDetachedSession(String id)
      Specified by:
      getDetachedSession in interface org.wildfly.clustering.session.SessionManager<C>
    • getStatistics

      public org.wildfly.clustering.session.SessionStatistics getStatistics()
      Specified by:
      getStatistics in interface org.wildfly.clustering.session.SessionManager<C>