Class SchedulerBuilder

java.lang.Object
com.github.kagkarlsson.scheduler.SchedulerBuilder
Direct Known Subclasses:
TestHelper.ManualSchedulerBuilder

public class SchedulerBuilder extends Object
  • Field Details

    • UPPER_LIMIT_FRACTION_OF_THREADS_FOR_FETCH

      public static final double UPPER_LIMIT_FRACTION_OF_THREADS_FOR_FETCH
      See Also:
    • DEFAULT_POLLING_INTERVAL

      public static final Duration DEFAULT_POLLING_INTERVAL
    • DEFAULT_HEARTBEAT_INTERVAL

      public static final Duration DEFAULT_HEARTBEAT_INTERVAL
    • DEFAULT_DELETION_OF_UNRESOLVED_TASKS_DURATION

      public static final Duration DEFAULT_DELETION_OF_UNRESOLVED_TASKS_DURATION
    • SHUTDOWN_MAX_WAIT

      public static final Duration SHUTDOWN_MAX_WAIT
    • DEFAULT_POLLING_STRATEGY

      public static final PollingStrategyConfig DEFAULT_POLLING_STRATEGY
    • DEFAULT_FAILURE_LOG_LEVEL

      public static final LogLevel DEFAULT_FAILURE_LOG_LEVEL
    • LOG_STACK_TRACE_ON_FAILURE

      public static final boolean LOG_STACK_TRACE_ON_FAILURE
      See Also:
    • clock

      protected Clock clock
    • dataSource

      protected final DataSource dataSource
    • schedulerName

      protected SchedulerName schedulerName
    • executorThreads

      protected int executorThreads
    • knownTasks

      protected final List<Task<?>> knownTasks
    • startTasks

      protected final List<OnStartup> startTasks
    • waiter

      protected Waiter waiter
    • statsRegistry

      protected StatsRegistry statsRegistry
    • heartbeatInterval

      protected Duration heartbeatInterval
    • serializer

      protected Serializer serializer
    • tableName

      protected String tableName
    • enableImmediateExecution

      protected boolean enableImmediateExecution
    • executorService

      protected ExecutorService executorService
    • deleteUnresolvedAfter

      protected Duration deleteUnresolvedAfter
    • jdbcCustomization

      protected JdbcCustomization jdbcCustomization
    • shutdownMaxWait

      protected Duration shutdownMaxWait
    • commitWhenAutocommitDisabled

      protected boolean commitWhenAutocommitDisabled
    • pollingStrategyConfig

      protected PollingStrategyConfig pollingStrategyConfig
    • logLevel

      protected LogLevel logLevel
    • logStackTrace

      protected boolean logStackTrace
  • Constructor Details

    • SchedulerBuilder

      public SchedulerBuilder(DataSource dataSource, List<Task<?>> knownTasks)
  • Method Details