Class AbstractSessionManager<CC,MV,AV,SC>
java.lang.Object
org.wildfly.clustering.session.cache.AbstractSessionManager<CC,MV,AV,SC>
- Type Parameters:
CC- the container 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.service.Service, org.wildfly.clustering.session.SessionManager<SC>, org.wildfly.clustering.session.SessionStatistics
public abstract class AbstractSessionManager<CC,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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceConfiguration of a session manager. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final System.LoggerThe logger for this session manager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSessionManager(AbstractSessionManager.Configuration<CC, MV, AV, SC> configuration) Creates a session manager using the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptionCompletionStage<org.wildfly.clustering.session.Session<SC>> createSessionAsync(String id, Instant creationTime) 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.SessionStatisticsbooleanvoidstart()voidstop()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.session.SessionManager
createSession, createSession, createSessionAsync, findImmutableSession, findSessionMethods inherited from interface org.wildfly.clustering.session.SessionStatistics
getActiveSessionCount, getActiveSessions, getSessions
-
Field Details
-
logger
The logger for this session manager
-
-
Constructor Details
-
AbstractSessionManager
Creates a session manager using the specified configuration.- Parameters:
configuration- the configuration of the session manager
-
-
Method Details
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceorg.wildfly.clustering.server.service.Service
-
start
public void start()- Specified by:
startin interfaceorg.wildfly.clustering.server.service.Service
-
stop
public void stop()- Specified by:
stopin interfaceorg.wildfly.clustering.server.service.Service
-
getIdentifierFactory
-
getBatchFactory
public org.wildfly.clustering.function.Supplier<org.wildfly.clustering.cache.batch.Batch> getBatchFactory()- Specified by:
getBatchFactoryin interfaceorg.wildfly.clustering.server.manager.Manager<CC>
-
createSessionAsync
public CompletionStage<org.wildfly.clustering.session.Session<SC>> createSessionAsync(String id, Instant creationTime) - Specified by:
createSessionAsyncin interfaceorg.wildfly.clustering.session.SessionManager<CC>
-
findSessionAsync
- Specified by:
findSessionAsyncin interfaceorg.wildfly.clustering.session.SessionManager<CC>
-
findImmutableSessionAsync
public CompletionStage<org.wildfly.clustering.session.ImmutableSession> findImmutableSessionAsync(String id) - Specified by:
findImmutableSessionAsyncin interfaceorg.wildfly.clustering.session.SessionManager<CC>
-
getDetachedSession
-
getStatistics
public org.wildfly.clustering.session.SessionStatistics getStatistics()- Specified by:
getStatisticsin interfaceorg.wildfly.clustering.session.SessionManager<CC>
-