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 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

      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().