Class InfinispanSessionManager<DC,MV,AV,SC>
java.lang.Object
org.wildfly.clustering.session.cache.AbstractSessionManager<DC,MV,AV,SC>
org.wildfly.clustering.session.infinispan.embedded.InfinispanSessionManager<DC,MV,AV,SC>
- Type Parameters:
DC- the deployment context typeMV- the meta-data value typeAV- the attributes value typeSC- the session context type
- All Implemented Interfaces:
Manager<String>, ManagerConfiguration<String>, Service, SessionManager<SC>, SessionStatistics
A session manager implementation backed by an embedded Infinispan cache.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from class AbstractSessionManager
logger -
Constructor Summary
ConstructorsConstructorDescriptionInfinispanSessionManager(org.wildfly.clustering.session.infinispan.embedded.InfinispanSessionManager.Configuration<DC, MV, AV, SC> configuration) Creates a session manager using the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the session with the specified identifier, or null if none exists.Returns the identifiers of active sessions managed by this session manager.Returns the identifiers of all sessions managed by this session manager, including passive sessions.Returns statistics for this session manager.voidstop()Stops this service.Methods inherited from class AbstractSessionManager
createSessionAsync, findImmutableSessionAsync, getBatchFactory, getDetachedSession, getIdentifierFactory, isStarted, startMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SessionManager
createSession, createSession, createSessionAsync, findImmutableSession, findSessionMethods inherited from interface SessionStatistics
getActiveSessionCount
-
Constructor Details
-
InfinispanSessionManager
-
-
Method Details
-
stop
-
findSessionAsync
Description copied from interface:SessionManagerReturns the session with the specified identifier, or null if none exists. Sessions returned by this method must be closed viaSession.close(). This method is intended to be invoked within the context of a batch.- Specified by:
findSessionAsyncin interfaceSessionManager<DC>- Overrides:
findSessionAsyncin classAbstractSessionManager<DC,MV, AV, SC> - Parameters:
id- a session identifier- Returns:
- an existing web session, or null if none exists
-
getStatistics
Description copied from interface:SessionManagerReturns statistics for this session manager.- Specified by:
getStatisticsin interfaceSessionManager<DC>- Overrides:
getStatisticsin classAbstractSessionManager<DC,MV, AV, SC> - Returns:
- an object from which statistics can be obtained.
-
getActiveSessions
Description copied from interface:SessionStatisticsReturns the identifiers of active sessions managed by this session manager.- Returns:
- a set of session identifiers.
-
getSessions
Description copied from interface:SessionStatisticsReturns the identifiers of all sessions managed by this session manager, including passive sessions.- Returns:
- a set of session identifiers.
-