public class SessionExpirationScheduler<MV> extends Object implements Scheduler
| Constructor and Description |
|---|
SessionExpirationScheduler(org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.cache.tx.TransactionBatch> batcher,
ImmutableSessionMetaDataFactory<MV> metaDataFactory,
org.wildfly.clustering.ee.Remover<String> remover) |
SessionExpirationScheduler(org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.cache.tx.TransactionBatch> batcher,
ImmutableSessionMetaDataFactory<MV> metaDataFactory,
org.wildfly.clustering.ee.Remover<String> remover,
ScheduledExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(Locality locality)
Cancels any previous scheduled tasks for session which are no longer local to the current node
|
void |
cancel(String sessionId) |
void |
close() |
void |
schedule(String sessionId)
Schedules the session with the specified identifier.
|
void |
schedule(String sessionId,
org.wildfly.clustering.web.session.ImmutableSessionMetaData metaData) |
public SessionExpirationScheduler(org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.cache.tx.TransactionBatch> batcher, ImmutableSessionMetaDataFactory<MV> metaDataFactory, org.wildfly.clustering.ee.Remover<String> remover)
public SessionExpirationScheduler(org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.cache.tx.TransactionBatch> batcher, ImmutableSessionMetaDataFactory<MV> metaDataFactory, org.wildfly.clustering.ee.Remover<String> remover, ScheduledExecutorService executor)
public void schedule(String sessionId)
SchedulersessionId - a session identifierpublic void schedule(String sessionId, org.wildfly.clustering.web.session.ImmutableSessionMetaData metaData)
public void cancel(Locality locality)
Schedulerpublic void close()
close in interface AutoCloseableclose in interface SchedulerCopyright © 2019 JBoss by Red Hat. All rights reserved.