public class InfinispanSessionManager<MV,AV,L> extends Object implements SessionManager<L,TransactionBatch>
| Constructor and Description |
|---|
InfinispanSessionManager(SessionFactory<MV,AV,L> factory,
InfinispanSessionManagerConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
activated(org.infinispan.notifications.cachelistener.event.CacheEntryActivatedEvent<SessionCreationMetaDataKey,?> event) |
String |
createIdentifier() |
Session<L> |
createSession(String id) |
Session<L> |
findSession(String id) |
long |
getActiveSessionCount() |
Set<String> |
getActiveSessions() |
org.wildfly.clustering.ee.Batcher<TransactionBatch> |
getBatcher() |
Duration |
getDefaultMaxInactiveInterval() |
Set<String> |
getLocalSessions() |
void |
passivated(org.infinispan.notifications.cachelistener.event.CacheEntryPassivatedEvent<SessionCreationMetaDataKey,?> event) |
void |
removed(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<SessionCreationMetaDataKey,?> event) |
void |
setDefaultMaxInactiveInterval(Duration duration) |
void |
start() |
void |
stop() |
ImmutableSession |
viewSession(String id) |
public InfinispanSessionManager(SessionFactory<MV,AV,L> factory, InfinispanSessionManagerConfiguration configuration)
public void start()
start in interface IdentifierFactory<String>public void stop()
stop in interface IdentifierFactory<String>public org.wildfly.clustering.ee.Batcher<TransactionBatch> getBatcher()
getBatcher in interface SessionManager<L,TransactionBatch>public Duration getDefaultMaxInactiveInterval()
getDefaultMaxInactiveInterval in interface SessionManager<L,TransactionBatch>public void setDefaultMaxInactiveInterval(Duration duration)
setDefaultMaxInactiveInterval in interface SessionManager<L,TransactionBatch>public String createIdentifier()
createIdentifier in interface IdentifierFactory<String>public Session<L> findSession(String id)
findSession in interface SessionManager<L,TransactionBatch>public Session<L> createSession(String id)
createSession in interface SessionManager<L,TransactionBatch>public ImmutableSession viewSession(String id)
viewSession in interface SessionManager<L,TransactionBatch>public Set<String> getActiveSessions()
getActiveSessions in interface SessionManager<L,TransactionBatch>public Set<String> getLocalSessions()
getLocalSessions in interface SessionManager<L,TransactionBatch>public long getActiveSessionCount()
getActiveSessionCount in interface ActiveSessionStatisticspublic void activated(org.infinispan.notifications.cachelistener.event.CacheEntryActivatedEvent<SessionCreationMetaDataKey,?> event)
public void passivated(org.infinispan.notifications.cachelistener.event.CacheEntryPassivatedEvent<SessionCreationMetaDataKey,?> event)
public void removed(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<SessionCreationMetaDataKey,?> event)
Copyright © 2018 JBoss by Red Hat. All rights reserved.