Class SchedulerConfig.Builder

Enclosing class:
SchedulerConfig

public static class SchedulerConfig.Builder extends AbstractServiceConfigBuilder<SchedulerConfig.Builder,SchedulerConfig>
Builder for SchedulerConfig.
  • Method Details

    • invocationEnabled

      public SchedulerConfig.Builder invocationEnabled(boolean invocationEnabled)
      Sets whether the background dispatcher that fires schedule targets is enabled. When false, the scheduler API is CRUD-only.
      Parameters:
      invocationEnabled - true to enable invocation (default true)
      Returns:
      this builder
    • tickIntervalSeconds

      public SchedulerConfig.Builder tickIntervalSeconds(long tickIntervalSeconds)
      Sets how often the dispatcher scans for due schedules, in seconds. Must be >= 1.
      Parameters:
      tickIntervalSeconds - the tick interval in seconds (default 10L)
      Returns:
      this builder
    • build

      public SchedulerConfig build()
      Creates an immutable SchedulerConfig from this builder.
      Specified by:
      build in class AbstractServiceConfigBuilder<SchedulerConfig.Builder,SchedulerConfig>
      Returns:
      the Scheduler configuration