Class HotRodSessionManager<SC,MV,AV,LC>
java.lang.Object
org.wildfly.clustering.web.hotrod.session.HotRodSessionManager<SC,MV,AV,LC>
- Type Parameters:
SC- the ServletContext specification typeMV- the meta-data value typeAV- the attributes value typeLC- the local context type
- All Implemented Interfaces:
Restartable,ActiveSessionStatistics,SessionManager<LC,TransactionBatch>
public class HotRodSessionManager<SC,MV,AV,LC>
extends Object
implements SessionManager<LC,TransactionBatch>
Generic HotRod-based session manager implementation - independent of cache mapping strategy.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionHotRodSessionManager(SessionFactory<SC, MV, AV, LC> factory, HotRodSessionManagerConfiguration<SC> configuration) -
Method Summary
Modifier and TypeMethodDescriptioncreateSession(String id) findSession(String id) longreadSession(String id) voidstart()voidstop()
-
Constructor Details
-
HotRodSessionManager
public HotRodSessionManager(SessionFactory<SC, MV, AV, LC> factory, HotRodSessionManagerConfiguration<SC> configuration)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceRestartable
-
stop
public void stop()- Specified by:
stopin interfaceRestartable
-
getStopTimeout
- Specified by:
getStopTimeoutin interfaceSessionManager<SC,MV>
-
getBatcher
- Specified by:
getBatcherin interfaceSessionManager<SC,MV>
-
getIdentifierFactory
- Specified by:
getIdentifierFactoryin interfaceSessionManager<SC,MV>
-
findSession
- Specified by:
findSessionin interfaceSessionManager<SC,MV>
-
createSession
- Specified by:
createSessionin interfaceSessionManager<SC,MV>
-
readSession
- Specified by:
readSessionin interfaceSessionManager<SC,MV>
-
getActiveSessions
- Specified by:
getActiveSessionsin interfaceSessionManager<SC,MV>
-
getLocalSessions
- Specified by:
getLocalSessionsin interfaceSessionManager<SC,MV>
-
getActiveSessionCount
public long getActiveSessionCount()- Specified by:
getActiveSessionCountin interfaceActiveSessionStatistics
-