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:
org.wildfly.clustering.ee.Restartable,org.wildfly.clustering.web.session.ActiveSessionStatistics,org.wildfly.clustering.web.session.SessionManager<LC,org.wildfly.clustering.ee.cache.tx.TransactionBatch>
public class InfinispanSessionManager<SC,MV,AV,LC> extends Object implements org.wildfly.clustering.web.session.SessionManager<LC,org.wildfly.clustering.ee.cache.tx.TransactionBatch>
Generic session manager implementation - independent of cache mapping strategy.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description InfinispanSessionManager(SessionFactory<SC,MV,AV,LC> factory, InfinispanSessionManagerConfiguration<SC,LC> configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.wildfly.clustering.web.session.Session<LC>createSession(String id)org.wildfly.clustering.web.session.Session<LC>findSession(String id)longgetActiveSessionCount()Set<String>getActiveSessions()org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.cache.tx.TransactionBatch>getBatcher()DurationgetDefaultMaxInactiveInterval()Supplier<String>getIdentifierFactory()Set<String>getLocalSessions()DurationgetStopTimeout()org.wildfly.clustering.web.session.ImmutableSessionreadSession(String id)CompletionStage<Void>removed(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<SessionCreationMetaDataKey,?> event)voidsetDefaultMaxInactiveInterval(Duration duration)voidstart()voidstop()
-
-
-
Constructor Detail
-
InfinispanSessionManager
public InfinispanSessionManager(SessionFactory<SC,MV,AV,LC> factory, InfinispanSessionManagerConfiguration<SC,LC> configuration)
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceorg.wildfly.clustering.ee.Restartable
-
stop
public void stop()
- Specified by:
stopin interfaceorg.wildfly.clustering.ee.Restartable
-
getStopTimeout
public Duration getStopTimeout()
-
getBatcher
public org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.cache.tx.TransactionBatch> getBatcher()
-
getDefaultMaxInactiveInterval
public Duration getDefaultMaxInactiveInterval()
-
setDefaultMaxInactiveInterval
public void setDefaultMaxInactiveInterval(Duration duration)
-
readSession
public org.wildfly.clustering.web.session.ImmutableSession readSession(String id)
-
getActiveSessionCount
public long getActiveSessionCount()
- Specified by:
getActiveSessionCountin interfaceorg.wildfly.clustering.web.session.ActiveSessionStatistics
-
removed
public CompletionStage<Void> removed(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<SessionCreationMetaDataKey,?> event)
-
-