Interface SchedulerService<K,V>
- Type Parameters:
K- the scheduled entry identifier typeV- the scheduled entry value type
- All Superinterfaces:
AutoCloseable, Scheduler<K,V>, Service
- All Known Implementing Classes:
CacheEntrySchedulerService, DecoratedSchedulerService, LocalSchedulerService, PrimaryOwnerSchedulerService
A restartable scheduler.
- Author:
- Paul Ferraro
-
Method Summary
-
Method Details
-
compose
default <KK,VV> SchedulerService<KK,VV> compose(Function<KK, K> identifierMapper, Function<VV, Optional<V>> entryMapper) Returns a mapped scheduler.- Type Parameters:
KK- the mapped identifier typeVV- the mapped value type- Parameters:
identifierMapper- the identifier mapping functionentryMapper- the entry mapping function- Returns:
- a mapped scheduler.
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-