G - the group identifier typeI - the bean identifier typeT - the bean typepublic class BeanEvictionScheduler<I> extends Object implements Scheduler<I>, BeanEvictionContext<I>
| Constructor and Description |
|---|
BeanEvictionScheduler(String name,
org.wildfly.clustering.ee.Batcher<TransactionBatch> batcher,
Evictor<I> evictor,
CommandDispatcherFactory dispatcherFactory,
PassivationConfiguration<?> config) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(I id)
Cancels a previously scheduled task for specified bean.
|
void |
cancel(Locality locality)
Cancels any previous scheduled tasks for beans which are no longer local to the current node
|
void |
close()
Closes any resources used by this scheduler.
|
org.wildfly.clustering.ee.Batcher<TransactionBatch> |
getBatcher() |
Evictor<I> |
getEvictor() |
void |
schedule(I id)
Schedules a task for the specified bean.
|
public BeanEvictionScheduler(String name, org.wildfly.clustering.ee.Batcher<TransactionBatch> batcher, Evictor<I> evictor, CommandDispatcherFactory dispatcherFactory, PassivationConfiguration<?> config)
public org.wildfly.clustering.ee.Batcher<TransactionBatch> getBatcher()
getBatcher in interface BeanEvictionContext<I>public Evictor<I> getEvictor()
getEvictor in interface BeanEvictionContext<I>public void cancel(I id)
Schedulerpublic void cancel(Locality locality)
Schedulerpublic void schedule(I id)
SchedulerCopyright © 2015 JBoss by Red Hat. All rights reserved.