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(Supplier<SessionManager<SC>> manager, 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 the identifiers of all sessions managed by this session manager, including passive sessions.booleanIndicates whether or not this service is started.voidstart()Starts this service.voidstop()Stops this service.Methods inherited from class org.wildfly.clustering.session.cache.AbstractSessionManager
createSessionAsync, findImmutableSessionAsync, findSessionAsync, getBatchFactory, 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(Supplier<SessionManager<SC>> manager, SessionManagerConfiguration<C> configuration, SessionFactory<C, MV, AV, SC> factory, HotRodSessionManagerConfiguration hotrod)
-
-
Method Details
-
isStarted
public boolean isStarted()Description copied from interface:ServiceIndicates whether or not this service is started.- Returns:
- true, if this service is started, false otherwise
-
start
public void start()Description copied from interface:ServiceStarts this service. -
stop
public void stop()Description copied from interface:ServiceStops this service. -
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.
-