Class AbstractSessionManager<DC,MV,AV,SC>
java.lang.Object
org.wildfly.clustering.session.cache.AbstractSessionManager<DC,MV,AV,SC>
- Type Parameters:
DC- the deployment 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<DC,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<DC, MV, AV, SC> configuration) Creates a session manager using the specified configuration. -
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.SessionStatisticsbooleanvoidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
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
- Specified by:
getIdentifierFactoryin interfaceorg.wildfly.clustering.server.manager.ManagerConfiguration<DC>
-
getBatchFactory
public org.wildfly.clustering.function.Supplier<org.wildfly.clustering.cache.batch.Batch> getBatchFactory()- Specified by:
getBatchFactoryin interfaceorg.wildfly.clustering.server.manager.Manager<DC>
-
createSessionAsync
- Specified by:
createSessionAsyncin interfaceorg.wildfly.clustering.session.SessionManager<DC>
-
findSessionAsync
- Specified by:
findSessionAsyncin interfaceorg.wildfly.clustering.session.SessionManager<DC>
-
findImmutableSessionAsync
public CompletionStage<org.wildfly.clustering.session.ImmutableSession> findImmutableSessionAsync(String id) - Specified by:
findImmutableSessionAsyncin interfaceorg.wildfly.clustering.session.SessionManager<DC>
-
getDetachedSession
- Specified by:
getDetachedSessionin interfaceorg.wildfly.clustering.session.SessionManager<DC>
-
getStatistics
public org.wildfly.clustering.session.SessionStatistics getStatistics()- Specified by:
getStatisticsin interfaceorg.wildfly.clustering.session.SessionManager<DC>
-