public class HotRodSessionManager<K,MV extends Keyed<K>,AV,L> extends Object implements org.wildfly.clustering.web.session.SessionManager<L,org.wildfly.clustering.ee.Batch>
Constructor and Description |
---|
HotRodSessionManager(SessionFactory<K,MV,AV,L> factory,
HotRodSessionManagerConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
String |
createIdentifier() |
org.wildfly.clustering.web.session.Session<L> |
createSession(String id) |
org.wildfly.clustering.web.session.Session<L> |
findSession(String id) |
long |
getActiveSessionCount() |
Set<String> |
getActiveSessions() |
org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.Batch> |
getBatcher() |
Duration |
getDefaultMaxInactiveInterval() |
Set<String> |
getLocalSessions() |
int |
getMaxActiveSessions() |
void |
setDefaultMaxInactiveInterval(Duration duration) |
void |
start() |
void |
stop() |
org.wildfly.clustering.web.session.ImmutableSession |
viewSession(String id) |
public HotRodSessionManager(SessionFactory<K,MV,AV,L> factory, HotRodSessionManagerConfiguration 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 org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.Batch> getBatcher()
getBatcher
in interface org.wildfly.clustering.web.session.SessionManager<L,org.wildfly.clustering.ee.Batch>
public Duration getDefaultMaxInactiveInterval()
getDefaultMaxInactiveInterval
in interface org.wildfly.clustering.web.session.SessionManager<L,org.wildfly.clustering.ee.Batch>
public void setDefaultMaxInactiveInterval(Duration duration)
setDefaultMaxInactiveInterval
in interface org.wildfly.clustering.web.session.SessionManager<L,org.wildfly.clustering.ee.Batch>
public String createIdentifier()
createIdentifier
in interface org.wildfly.clustering.web.IdentifierFactory<String>
public org.wildfly.clustering.web.session.Session<L> findSession(String id)
findSession
in interface org.wildfly.clustering.web.session.SessionManager<L,org.wildfly.clustering.ee.Batch>
public org.wildfly.clustering.web.session.Session<L> createSession(String id)
createSession
in interface org.wildfly.clustering.web.session.SessionManager<L,org.wildfly.clustering.ee.Batch>
public org.wildfly.clustering.web.session.ImmutableSession viewSession(String id)
viewSession
in interface org.wildfly.clustering.web.session.SessionManager<L,org.wildfly.clustering.ee.Batch>
public Set<String> getActiveSessions()
getActiveSessions
in interface org.wildfly.clustering.web.session.SessionManager<L,org.wildfly.clustering.ee.Batch>
public Set<String> getLocalSessions()
getLocalSessions
in interface org.wildfly.clustering.web.session.SessionManager<L,org.wildfly.clustering.ee.Batch>
public int getMaxActiveSessions()
getMaxActiveSessions
in interface org.wildfly.clustering.web.session.ActiveSessionStatistics
public long getActiveSessionCount()
getActiveSessionCount
in interface org.wildfly.clustering.web.session.ActiveSessionStatistics
Copyright © 2017 JBoss by Red Hat. All rights reserved.