Interface PrimaryOwnerSchedulerService.Configuration<K,V,SE,CE>

Type Parameters:
K - the scheduled entry key type
V - the scheduled entry value type
SE - the schedule task entry type
CE - 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 Details

    • getName

      default String getName()
      Returns the name of this scheduler.
      Returns:
      the name of this scheduler.
    • getScheduler

      org.wildfly.clustering.server.scheduler.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

      default org.wildfly.clustering.function.Function<Map.Entry<K,V>, PrimaryOwnerCommand<K,V,Void>> getScheduleCommandFactory()
      Returns the factory for creating a schedule command.
      Returns:
      the factory for creating a schedule command.
    • getAffinity

      default org.wildfly.clustering.function.Function<K, CacheContainerGroupMember> 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.
    • getClassLoader

      default ClassLoader getClassLoader()
      Returns the class loader from which this scheduler will configure its command dispatcher.
      Returns:
      a class loader
    • getCacheConfiguration

      org.wildfly.clustering.cache.infinispan.embedded.EmbeddedCacheConfiguration getCacheConfiguration()
      Returns the configuration for the associated cache.
      Returns:
      the configuration for the associated cache.
    • getScheduleTask

      Consumer<org.wildfly.clustering.cache.infinispan.embedded.distribution.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<org.wildfly.clustering.cache.infinispan.embedded.distribution.CacheStreamFilter<CE>> getCancelTask()
      Returns the task that cancels entries matching a given filter.
      Returns:
      the task that cancels entries matching a given filter.