public class EagerEvictionScheduler<I,T> extends Object implements Scheduler<I>, BeanGroupEvictor<I>, Consumer<I>
| Constructor and Description |
|---|
EagerEvictionScheduler(BeanFactory<I,T> factory,
BeanGroupEvictor<I> evictor,
ScheduledExecutorService executor,
Duration idleTimeout,
CommandDispatcherFactory dispatcherFactory,
String dispatcherName) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(I id) |
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.
|
void |
evict(I id)
Evicts the bean group identified by the specified identifier.
|
void |
schedule(I id)
Schedules a task for the specified bean.
|
public EagerEvictionScheduler(BeanFactory<I,T> factory, BeanGroupEvictor<I> evictor, ScheduledExecutorService executor, Duration idleTimeout, CommandDispatcherFactory dispatcherFactory, String dispatcherName)
public void schedule(I id)
Schedulerpublic void cancel(I id)
Schedulerpublic void cancel(Locality locality)
Schedulerpublic void close()
Schedulerclose in interface AutoCloseableclose in interface Scheduler<I>public void evict(I id)
BeanGroupEvictorevict in interface BeanGroupEvictor<I>id - a bean group identifier.Copyright © 2019 JBoss by Red Hat. All rights reserved.