Interface CacheEntryScheduler<I,M>
- Type Parameters:
I- the identifier type of scheduled entriesM- the meta data type
- All Superinterfaces:
AutoCloseable,org.wildfly.clustering.server.Registration,org.wildfly.clustering.server.scheduler.Scheduler<I,M>
- All Known Implementing Classes:
AbstractCacheEntryScheduler,AbstractExpirationScheduler
public interface CacheEntryScheduler<I,M>
extends org.wildfly.clustering.server.scheduler.Scheduler<I,M>
A task scheduler.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.server.Registration
EMPTY -
Method Summary
Methods inherited from interface org.wildfly.clustering.server.Registration
closeMethods inherited from interface org.wildfly.clustering.server.scheduler.Scheduler
cancel, contains, schedule, stream
-
Method Details
-
schedule
Schedules a cache entry with the specified identifier. This method will generally delegate toScheduler.schedule(Object, Object)after performing a cache lookup.- Parameters:
id- the identifier of the object to be scheduled
-
cancel
Cancels any previous scheduled tasks for entries which are no longer local to the current node- Parameters:
locality- the cache locality
-