public class SessionEvictionScheduler extends Object implements Scheduler, SessionEvictionContext
| Constructor and Description |
|---|
SessionEvictionScheduler(String name,
Evictor<String> evictor,
org.wildfly.clustering.ee.Batcher<TransactionBatch> batcher,
CommandDispatcherFactory dispatcherFactory,
int maxSize) |
| 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.
|
org.wildfly.clustering.ee.Batcher<TransactionBatch> |
getBatcher() |
Evictor<String> |
getEvictor() |
void |
schedule(String sessionId,
ImmutableSessionMetaData metaData)
Schedules a task for the specified session.
|
public SessionEvictionScheduler(String name, Evictor<String> evictor, org.wildfly.clustering.ee.Batcher<TransactionBatch> batcher, CommandDispatcherFactory dispatcherFactory, int maxSize)
public Evictor<String> getEvictor()
getEvictor in interface SessionEvictionContextpublic org.wildfly.clustering.ee.Batcher<TransactionBatch> getBatcher()
getBatcher in interface SessionEvictionContextpublic void cancel(String sessionId)
Schedulerpublic void schedule(String sessionId, ImmutableSessionMetaData metaData)
Schedulerpublic void cancel(Locality locality)
Schedulerpublic void close()
Schedulerclose in interface AutoCloseableclose in interface SchedulerCopyright © 2018 JBoss by Red Hat. All rights reserved.