Class InfinispanSessionManager<SC,MV,AV,LC>
java.lang.Object
org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager<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 InfinispanSessionManager<SC,MV,AV,LC>
extends Object
implements SessionManager<LC,TransactionBatch>
Generic session manager implementation - independent of cache mapping strategy.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionInfinispanSessionManager(SessionFactory<SC, MV, AV, LC> factory, InfinispanSessionManagerConfiguration<SC, LC> configuration) -
Method Summary
Modifier and TypeMethodDescriptioncreateSession(String id) findSession(String id) longreadSession(String id) voidstart()voidstop()
-
Constructor Details
-
InfinispanSessionManager
public InfinispanSessionManager(SessionFactory<SC, MV, AV, LC> factory, InfinispanSessionManagerConfiguration<SC, LC> 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
-