Class CachedSessionManager<C>

java.lang.Object
org.wildfly.clustering.server.service.DecoratedService
org.wildfly.clustering.server.manager.DecoratedManager<String>
org.wildfly.clustering.session.cache.DecoratedSessionManager<C>
org.wildfly.clustering.session.cache.CachedSessionManager<C>
Type Parameters:
C - 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<C>

public class CachedSessionManager<C> extends DecoratedSessionManager<C>
A session manager decorator that shares session references across concurrent threads.
Author:
Paul Ferraro
  • Constructor Summary

    Constructors
    Constructor
    Description
    CachedSessionManager(org.wildfly.clustering.session.SessionManager<C> manager, org.wildfly.clustering.server.cache.CacheFactory cacheFactory)
    Creates a cached session manager decorator.
  • Method Summary

    Modifier and Type
    Method
    Description
    CompletionStage<org.wildfly.clustering.session.Session<C>>
     
    CompletionStage<org.wildfly.clustering.session.Session<C>>
    createSessionAsync(String id, Instant creationTime)
     
    CompletionStage<org.wildfly.clustering.session.Session<C>>
     

    Methods inherited from class org.wildfly.clustering.server.manager.DecoratedManager

    getBatchFactory, getIdentifierFactory

    Methods inherited from class org.wildfly.clustering.server.service.DecoratedService

    isStarted, start, stop

    Methods inherited from class Object

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

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

    getBatchFactory

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

    getIdentifierFactory

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

    isStarted, start, stop

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

    createSession, createSession, findImmutableSession, findSession
  • Constructor Details

    • CachedSessionManager

      public CachedSessionManager(org.wildfly.clustering.session.SessionManager<C> manager, org.wildfly.clustering.server.cache.CacheFactory cacheFactory)
      Creates a cached session manager decorator.
      Parameters:
      manager - a session manager
      cacheFactory - a cache factory
  • Method Details