G
- the group identifier typeI
- the bean identifier typeT
- the bean typepublic class BeanExpirationScheduler<G,I,T> extends Object implements Scheduler<I>
Constructor and Description |
---|
BeanExpirationScheduler(Batcher<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(Batcher<TransactionBatch> batcher, BeanRemover<I,T> remover, ExpirationConfiguration<T> expiration)
public void schedule(I id)
Scheduler
public void cancel(I id)
Scheduler
public void cancel(Locality locality)
Scheduler
Copyright © 2017 JBoss by Red Hat. All rights reserved.