Interface PrimaryOwnerSchedulerService.Configuration<K,V,SE,CE>
- Type Parameters:
K- the scheduled entry key typeV- the scheduled entry value typeSE- the schedule task entry typeCE- the cancel task entry type
- Enclosing class:
PrimaryOwnerSchedulerService<K,V>
public static interface PrimaryOwnerSchedulerService.Configuration<K,V,SE,CE>
Encapsulates configuration of a
PrimaryOwnerSchedulerService.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault Function<K, CacheContainerGroupMember> Returns the function returning the group member for which a given identifier has affinity.Returns the configuration for the associated cache.Returns the task that cancels entries matching a given filter.Returns the command dispatcher factory for this scheduler.default StringgetName()Returns the name of this scheduler.Returns the factory for creating a schedule command.Returns the delegated scheduler.Returns the task that schedule entries matching a given filter.
-
Method Details
-
getName
-
getScheduler
SchedulerService<K,V> getScheduler()Returns the delegated scheduler.- Returns:
- the delegated scheduler.
-
getCommandDispatcherFactory
CacheContainerCommandDispatcherFactory getCommandDispatcherFactory()Returns the command dispatcher factory for this scheduler.- Returns:
- the command dispatcher factory for this scheduler.
-
getScheduleCommandFactory
-
getAffinity
Returns the function returning the group member for which a given identifier has affinity.- Returns:
- the function returning the group member for which a given identifier has affinity.
-
getCacheConfiguration
EmbeddedCacheConfiguration getCacheConfiguration()Returns the configuration for the associated cache.- Returns:
- the configuration for the associated cache.
-
getScheduleTask
Consumer<CacheStreamFilter<SE>> getScheduleTask()Returns the task that schedule entries matching a given filter.- Returns:
- the task that schedule entries matching a given filter.
-
getCancelTask
Consumer<CacheStreamFilter<CE>> getCancelTask()Returns the task that cancels entries matching a given filter.- Returns:
- the task that cancels entries matching a given filter.
-