I - the bean identifier typeT - the bean typepublic class BeanExpirationScheduler<I,T> extends Object implements Scheduler<I,ImmutableBeanEntry<I>>, Predicate<I>
| Constructor and Description |
|---|
BeanExpirationScheduler(org.wildfly.clustering.group.Group group,
org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.cache.tx.TransactionBatch> batcher,
BeanFactory<I,T> factory,
ExpirationConfiguration<T> expiration,
BeanRemover<I,T> remover,
Duration closeTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(I id) |
void |
cancel(Locality locality) |
void |
close() |
void |
schedule(I id) |
void |
schedule(I id,
ImmutableBeanEntry<I> entry) |
boolean |
test(I id) |
public BeanExpirationScheduler(org.wildfly.clustering.group.Group group,
org.wildfly.clustering.ee.Batcher<org.wildfly.clustering.ee.cache.tx.TransactionBatch> batcher,
BeanFactory<I,T> factory,
ExpirationConfiguration<T> expiration,
BeanRemover<I,T> remover,
Duration closeTimeout)
public void schedule(I id)
public void schedule(I id, ImmutableBeanEntry<I> entry)
schedule in interface org.wildfly.clustering.ee.Scheduler<I,ImmutableBeanEntry<I>>public void cancel(I id)
cancel in interface org.wildfly.clustering.ee.Scheduler<I,ImmutableBeanEntry<I>>public void cancel(Locality locality)
public void close()
close in interface AutoCloseableclose in interface org.wildfly.clustering.ee.Scheduler<I,ImmutableBeanEntry<I>>Copyright © 2020 JBoss by Red Hat. All rights reserved.