Interface LocalSchedulerService.Configuration<K>

Type Parameters:
K - the scheduled entry key type
Enclosing class:
LocalSchedulerService<K>

public static interface LocalSchedulerService.Configuration<K>
Encapsulates configuration of a LocalSchedulerService.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    default Duration
    Returns the duration of time to wait for scheduled tasks to complete on SchedulerService.close().
    Returns the name of this scheduler.
    Returns the scheduled entries collection used by this scheduler.
    org.wildfly.clustering.function.Predicate<K>
    Returns the scheduled task.
    Returns a thread factory for use by this scheduler.
  • Method Details

    • getName

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

      default ScheduledEntries<K,Instant> getScheduledEntries()
      Returns the scheduled entries collection used by this scheduler.
      Returns:
      the scheduled entries collection used by this scheduler.
    • getTask

      org.wildfly.clustering.function.Predicate<K> getTask()
      Returns the scheduled task.
      Returns:
      the scheduled task.
    • getThreadFactory

      ThreadFactory getThreadFactory()
      Returns a thread factory for use by this scheduler.
      Returns:
      a thread factory for use by this scheduler.
    • getCloseTimeout

      default Duration getCloseTimeout()
      Returns the duration of time to wait for scheduled tasks to complete on SchedulerService.close().
      Returns:
      the duration of time to wait for scheduled tasks to complete on SchedulerService.close().