public class InfinispanSessionManager<V,L> extends Object implements SessionManager<L,TransactionBatch>
| Constructor and Description |
|---|
InfinispanSessionManager(SessionFactory<V,L> factory,
InfinispanSessionManagerConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
activated(org.infinispan.notifications.cachelistener.event.CacheEntryActivatedEvent<String,?> event) |
boolean |
containsSession(String id) |
String |
createIdentifier() |
Session<L> |
createSession(String id) |
void |
dataRehashed(org.infinispan.notifications.cachelistener.event.DataRehashedEvent<String,?> event) |
Session<L> |
findSession(String id) |
Set<String> |
getActiveSessions() |
org.wildfly.clustering.ee.Batcher<TransactionBatch> |
getBatcher() |
long |
getDefaultMaxInactiveInterval(TimeUnit unit) |
Set<String> |
getLocalSessions() |
void |
passivated(org.infinispan.notifications.cachelistener.event.CacheEntryPassivatedEvent<String,?> event) |
void |
removed(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<String,?> event) |
void |
setDefaultMaxInactiveInterval(long value,
TimeUnit unit) |
void |
start() |
void |
stop() |
ImmutableSession |
viewSession(String id) |
public InfinispanSessionManager(SessionFactory<V,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 long getDefaultMaxInactiveInterval(TimeUnit unit)
getDefaultMaxInactiveInterval in interface SessionManager<L,TransactionBatch>public void setDefaultMaxInactiveInterval(long value,
TimeUnit unit)
setDefaultMaxInactiveInterval in interface SessionManager<L,TransactionBatch>public String createIdentifier()
createIdentifier in interface IdentifierFactory<String>public boolean containsSession(String id)
containsSession in interface SessionManager<L,TransactionBatch>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 void activated(org.infinispan.notifications.cachelistener.event.CacheEntryActivatedEvent<String,?> event)
public void passivated(org.infinispan.notifications.cachelistener.event.CacheEntryPassivatedEvent<String,?> event)
public void removed(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<String,?> event)
public void dataRehashed(org.infinispan.notifications.cachelistener.event.DataRehashedEvent<String,?> event)
Copyright © 2015 JBoss by Red Hat. All rights reserved.