G
- the group identifier typeI
- the bean identifier typeT
- the bean typepublic class BeanGroupEvictionScheduler<I> extends Object implements Scheduler<I>, BeanGroupEvictionContext<I>
Constructor and Description |
---|
BeanGroupEvictionScheduler(String name,
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.
|
Batcher<TransactionBatch> |
getBatcher() |
Evictor<I> |
getEvictor() |
void |
schedule(I id)
Schedules a task for the specified bean.
|
public BeanGroupEvictionScheduler(String name, Batcher<TransactionBatch> batcher, Evictor<I> evictor, CommandDispatcherFactory dispatcherFactory, PassivationConfiguration<?> config)
public Batcher<TransactionBatch> getBatcher()
getBatcher
in interface BeanGroupEvictionContext<I>
public Evictor<I> getEvictor()
getEvictor
in interface BeanGroupEvictionContext<I>
public void cancel(I id)
Scheduler
public void cancel(Locality locality)
Scheduler
public void schedule(I id)
Scheduler
Copyright © 2016 JBoss by Red Hat. All rights reserved.