S - the HttpSession specification typeSC - the ServletContext specification typeAL - the HttpSessionAttributeListener specification typeMV - the meta-data value typeAV - the attributes value typeLC - the local context typepublic class InfinispanSessionManager<S,SC,AL,MV,AV,LC> extends Object implements org.wildfly.clustering.web.session.SessionManager<LC,org.wildfly.clustering.ee.cache.tx.TransactionBatch>
| Constructor and Description |
|---|
InfinispanSessionManager(SessionFactory<SC,MV,AV,LC> factory,
InfinispanSessionManagerConfiguration<S,SC,AL> configuration) |
public InfinispanSessionManager(SessionFactory<SC,MV,AV,LC> factory, InfinispanSessionManagerConfiguration<S,SC,AL> configuration)
public void start()
start in interface org.wildfly.clustering.web.IdentifierFactory<String>public void stop()
stop in interface org.wildfly.clustering.web.IdentifierFactory<String>public Duration getStopTimeout()
getStopTimeout in interface org.wildfly.clustering.web.session.SessionManager<LC,org.wildfly.clustering.ee.cache.tx.TransactionBatch>public org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.cache.tx.TransactionBatch> getBatcher()
getBatcher in interface org.wildfly.clustering.web.session.SessionManager<LC,org.wildfly.clustering.ee.cache.tx.TransactionBatch>public Duration getDefaultMaxInactiveInterval()
getDefaultMaxInactiveInterval in interface org.wildfly.clustering.web.session.SessionManager<LC,org.wildfly.clustering.ee.cache.tx.TransactionBatch>public void setDefaultMaxInactiveInterval(Duration duration)
setDefaultMaxInactiveInterval in interface org.wildfly.clustering.web.session.SessionManager<LC,org.wildfly.clustering.ee.cache.tx.TransactionBatch>public String createIdentifier()
createIdentifier in interface org.wildfly.clustering.web.IdentifierFactory<String>public org.wildfly.clustering.web.session.Session<LC> findSession(String id)
findSession in interface org.wildfly.clustering.web.session.SessionManager<LC,org.wildfly.clustering.ee.cache.tx.TransactionBatch>public org.wildfly.clustering.web.session.Session<LC> createSession(String id)
createSession in interface org.wildfly.clustering.web.session.SessionManager<LC,org.wildfly.clustering.ee.cache.tx.TransactionBatch>public org.wildfly.clustering.web.session.ImmutableSession viewSession(String id)
viewSession in interface org.wildfly.clustering.web.session.SessionManager<LC,org.wildfly.clustering.ee.cache.tx.TransactionBatch>public Set<String> getActiveSessions()
getActiveSessions in interface org.wildfly.clustering.web.session.SessionManager<LC,org.wildfly.clustering.ee.cache.tx.TransactionBatch>public Set<String> getLocalSessions()
getLocalSessions in interface org.wildfly.clustering.web.session.SessionManager<LC,org.wildfly.clustering.ee.cache.tx.TransactionBatch>public long getActiveSessionCount()
getActiveSessionCount in interface org.wildfly.clustering.web.session.ActiveSessionStatisticspublic CompletionStage<Void> activated(org.infinispan.notifications.cachelistener.event.CacheEntryActivatedEvent<SessionCreationMetaDataKey,?> event)
public CompletionStage<Void> passivated(org.infinispan.notifications.cachelistener.event.CacheEntryPassivatedEvent<SessionCreationMetaDataKey,?> event)
public CompletionStage<Void> removed(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<SessionCreationMetaDataKey,?> event)
Copyright © 2020 JBoss by Red Hat. All rights reserved.