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 typeMV- the session metadata value typeAV- the session attribute value typeSC- 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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSessionManager(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 TypeMethodDescriptionCompletionStage<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.SessionStatisticsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.server.manager.Service
isStarted, start, stopMethods inherited from interface org.wildfly.clustering.session.SessionManager
createSession, findImmutableSession, findSessionMethods inherited from interface org.wildfly.clustering.session.SessionStatistics
getActiveSessionCount, getActiveSessions, getSessions
-
Field Details
-
logger
-
-
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
- Specified by:
getIdentifierFactoryin interfaceorg.wildfly.clustering.server.manager.ManagerConfiguration<C>
-
getBatchFactory
public org.wildfly.clustering.function.Supplier<org.wildfly.clustering.cache.batch.Batch> getBatchFactory()- Specified by:
getBatchFactoryin interfaceorg.wildfly.clustering.server.manager.Manager<C>
-
createSessionAsync
- Specified by:
createSessionAsyncin interfaceorg.wildfly.clustering.session.SessionManager<C>
-
findSessionAsync
- Specified by:
findSessionAsyncin interfaceorg.wildfly.clustering.session.SessionManager<C>
-
findImmutableSessionAsync
public CompletionStage<org.wildfly.clustering.session.ImmutableSession> findImmutableSessionAsync(String id) - Specified by:
findImmutableSessionAsyncin interfaceorg.wildfly.clustering.session.SessionManager<C>
-
getDetachedSession
- Specified by:
getDetachedSessionin interfaceorg.wildfly.clustering.session.SessionManager<C>
-
getStatistics
public org.wildfly.clustering.session.SessionStatistics getStatistics()- Specified by:
getStatisticsin interfaceorg.wildfly.clustering.session.SessionManager<C>
-