Class AbstractCacheEntryScheduler<I,M>
- java.lang.Object
-
- org.wildfly.clustering.ee.infinispan.scheduler.AbstractCacheEntryScheduler<I,M>
-
- All Implemented Interfaces:
AutoCloseable,CacheEntryScheduler<I,M>,Scheduler<I,M>
- Direct Known Subclasses:
AbstractExpirationScheduler
public abstract class AbstractCacheEntryScheduler<I,M> extends Object implements CacheEntryScheduler<I,M>
AbstractCacheEntrySchedulerthat delegates to a local scheduler.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCacheEntryScheduler(Scheduler<I,Instant> scheduler, Function<M,Duration> duration, Predicate<Duration> skip, Function<M,Instant> basis)protectedAbstractCacheEntryScheduler(Scheduler<I,Instant> scheduler, Function<M,Instant> instant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel(I id)voidcancel(Locality locality)Cancels any previous scheduled tasks for entries which are no longer local to the current nodevoidclose()voidschedule(I id, M metaData)Stream<I>stream()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.ee.infinispan.scheduler.CacheEntryScheduler
schedule
-
-
-
-
Method Detail
-
cancel
public void cancel(Locality locality)
Description copied from interface:CacheEntrySchedulerCancels any previous scheduled tasks for entries which are no longer local to the current node- Specified by:
cancelin interfaceCacheEntryScheduler<I,M>- Parameters:
locality- the cache locality
-
close
public void close()
-
-