public class SessionExpirationScheduler extends Object implements Scheduler
| Constructor and Description |
|---|
SessionExpirationScheduler(org.wildfly.clustering.ee.Batcher<TransactionBatch> batcher,
Remover<String> remover) |
SessionExpirationScheduler(org.wildfly.clustering.ee.Batcher<TransactionBatch> batcher,
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)
Cancels a previously scheduled task for the specified session
|
void |
close()
Closes any resources used by this scheduler.
|
void |
schedule(ImmutableSession session)
Schedules a task for the specified session.
|
public SessionExpirationScheduler(org.wildfly.clustering.ee.Batcher<TransactionBatch> batcher, Remover<String> remover)
public SessionExpirationScheduler(org.wildfly.clustering.ee.Batcher<TransactionBatch> batcher, Remover<String> remover, ScheduledExecutorService executor)
public void cancel(String sessionId)
Schedulerpublic void schedule(ImmutableSession session)
Schedulerpublic void cancel(Locality locality)
Schedulerpublic void close()
Schedulerclose in interface AutoCloseableclose in interface SchedulerCopyright © 2015 JBoss by Red Hat. All rights reserved.