Interface CacheEntryScheduler<I,K extends Key<I>,V,M>
- Type Parameters:
I- the scheduled entry identifier typeK- the cache entry key typeV- the cache entry value typeM- the scheduled entry metadata type
- All Superinterfaces:
AutoCloseable,Scheduler<I,,M> Scheduler<I,M>
- All Known Implementing Classes:
AbstractCacheEntryScheduler,CacheEntryScheduler.InactiveCacheEntryScheduler,CacheEntryScheduler.ReferenceCacheEntryScheduler,SessionExpirationScheduler
A task scheduler.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classNested classes/interfaces inherited from interface org.wildfly.clustering.server.infinispan.scheduler.Scheduler
Scheduler.InactiveScheduler<I,M>, Scheduler.ReferenceScheduler<I, M> -
Method Summary
Modifier and TypeMethodDescriptionstatic <I,K extends Key<I>, V, M>
CacheEntryScheduler<I, K, V, M> fromReference(Supplier<? extends CacheEntryScheduler<I, K, V, M>> reference) Returns a scheduler that delegates to a scheduler reference.static <I,K extends Key<I>, V, M>
CacheEntryScheduler<I, K, V, M> inactive()Returns an inactive scheduler instance.voidSchedules a cache entry.
-
Method Details
-
schedule
-
inactive
Returns an inactive scheduler instance.- Type Parameters:
I- the scheduled object identifier typeK- the cache entry key typeV- the cache entry value typeM- the scheduled object metadata type- Returns:
- an inactive scheduler instance.
-
fromReference
static <I,K extends Key<I>, CacheEntryScheduler<I,V, M> K, fromReferenceV, M> (Supplier<? extends CacheEntryScheduler<I, K, V, M>> reference) Returns a scheduler that delegates to a scheduler reference.- Type Parameters:
I- the scheduled object identifier typeK- the cache entry key typeV- the cache entry value typeM- the scheduled object metadata type- Parameters:
reference- a scheduler reference- Returns:
- a scheduler that delegates to a scheduler reference.
-