Class HotRodSessionManager<C,MV,AV,SC>
java.lang.Object
org.wildfly.clustering.session.cache.AbstractSessionManager<C,MV,AV,SC>
org.wildfly.clustering.session.infinispan.remote.HotRodSessionManager<C,MV,AV,SC>
- Type Parameters:
C- the session manager 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
Generic HotRod-based session manager implementation - independent of cache mapping strategy.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from class org.wildfly.clustering.session.cache.AbstractSessionManager
logger -
Constructor Summary
ConstructorsConstructorDescriptionHotRodSessionManager(SessionManagerConfiguration<C> configuration, SessionFactory<C, MV, AV, SC> factory, HotRodSessionManagerConfiguration hotrod) -
Method Summary
Modifier and TypeMethodDescriptionReturns the identifiers of active sessions managed by this session manager.Returns a batcher for use by users of this manager.Returns the identifiers of all sessions managed by this session manager, including passive sessions.voidstart()Starts this service.voidstop()Stops this service.Methods inherited from class org.wildfly.clustering.session.cache.AbstractSessionManager
createSessionAsync, findImmutableSessionAsync, findSessionAsync, getDetachedSession, getIdentifierFactory, getStatisticsMethods 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
-
Constructor Details
-
HotRodSessionManager
public HotRodSessionManager(SessionManagerConfiguration<C> configuration, SessionFactory<C, MV, AV, SC> factory, HotRodSessionManagerConfiguration hotrod)
-
-
Method Details
-
start
-
stop
-
getBatchFactory
Description copied from interface:ManagerReturns a batcher for use by users of this manager.- Specified by:
getBatchFactoryin interfaceManager<C>- Overrides:
getBatchFactoryin classAbstractSessionManager<C,MV, AV, SC> - Returns:
- a batcher
-
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.
-