Interface Scheduler<K,V>
- Type Parameters:
K- the scheduled entry key typeV- the scheduled entry value type
- All Known Subinterfaces:
SchedulerService<K,V>
- All Known Implementing Classes:
CacheEntrySchedulerService, DecoratedSchedulerService, LocalSchedulerService, PrimaryOwnerSchedulerService
public interface Scheduler<K,V>
A task scheduler.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionvoidCancels a previously scheduled task for the entry with the specified key.booleanIndicates whether the entry with the specified key is scheduled.default voidSchedules a task for the specified entryvoidSchedules a task for the specified entry.
-
Method Details
-
schedule
-
schedule
-
cancel
Cancels a previously scheduled task for the entry with the specified key.- Parameters:
key- the scheduled entry key
-
contains
Indicates whether the entry with the specified key is scheduled.- Parameters:
key- the scheduled entry key- Returns:
- true, if the specified entry is scheduled, false otherwise.
-