I - the bean identifier typeT - the bean typepublic class BeanExpirationScheduler<I,T> extends Object implements Scheduler<I>
| Constructor and Description |
|---|
BeanExpirationScheduler(org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.cache.tx.TransactionBatch> batcher,
BeanRemover<I,T> remover,
ExpirationConfiguration<T> expiration) |
| 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.
|
void |
schedule(I id)
Schedules a task for the specified bean.
|
public BeanExpirationScheduler(org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.cache.tx.TransactionBatch> batcher, BeanRemover<I,T> remover, ExpirationConfiguration<T> expiration)
public void schedule(I id)
Schedulerpublic void cancel(I id)
Schedulerpublic void cancel(Locality locality)
SchedulerCopyright © 2019 JBoss by Red Hat. All rights reserved.