Interface CacheEntryScheduler<I,M>
-
- All Superinterfaces:
AutoCloseable,Scheduler<I,M>
- All Known Implementing Classes:
AbstractCacheEntryScheduler,AbstractExpirationScheduler
public interface CacheEntryScheduler<I,M> extends Scheduler<I,M>
A task scheduler.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancel(Locality locality)Cancels any previous scheduled tasks for entries which are no longer local to the current nodevoidschedule(I id)Schedules a cache entry with the specified identifier.
-
-
-
Method Detail
-
schedule
void schedule(I id)
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
void cancel(Locality locality)
Cancels any previous scheduled tasks for entries which are no longer local to the current node- Parameters:
locality- the cache locality
-
-