SC - the ServletContext specification typeMV - the meta-data value typeAV - the attributes value typeLC - the local context typepublic class HotRodSessionManager<SC,MV,AV,LC> extends Object implements org.wildfly.clustering.web.session.SessionManager<LC,org.wildfly.clustering.ee.cache.tx.TransactionBatch>
| Constructor and Description |
|---|
HotRodSessionManager(SessionFactory<SC,MV,AV,LC> factory,
HotRodSessionManagerConfiguration<SC> configuration) |
| Modifier and Type | Method and Description |
|---|---|
String |
createIdentifier() |
org.wildfly.clustering.web.session.Session<LC> |
createSession(String id) |
org.wildfly.clustering.web.session.Session<LC> |
findSession(String id) |
long |
getActiveSessionCount() |
Set<String> |
getActiveSessions() |
org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.cache.tx.TransactionBatch> |
getBatcher() |
Duration |
getDefaultMaxInactiveInterval() |
Set<String> |
getLocalSessions() |
Duration |
getStopTimeout() |
void |
setDefaultMaxInactiveInterval(Duration duration) |
void |
start() |
void |
stop() |
org.wildfly.clustering.web.session.ImmutableSession |
viewSession(String id) |
public HotRodSessionManager(SessionFactory<SC,MV,AV,LC> factory, HotRodSessionManagerConfiguration<SC> 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.ActiveSessionStatisticsCopyright © 2020 JBoss by Red Hat. All rights reserved.