Class DefaultJobSchedulerConfig

java.lang.Object
org.graylog.scheduler.DefaultJobSchedulerConfig
All Implemented Interfaces:
JobSchedulerConfig

@Singleton public class DefaultJobSchedulerConfig extends Object implements JobSchedulerConfig
This is the default JobSchedulerConfig.
  • Constructor Details

    • DefaultJobSchedulerConfig

      @Inject public DefaultJobSchedulerConfig(LeaderElectionService leaderElectionService)
  • Method Details

    • canExecute

      public boolean canExecute()
      Description copied from interface: JobSchedulerConfig
      Determines if the scheduler can execute the next loop iteration. This method will be called at the beginning of each scheduler loop iteration so it should be fast!
      Specified by:
      canExecute in interface JobSchedulerConfig
      Returns:
      true if scheduler can execute next loop iteration
    • numberOfWorkerThreads

      public int numberOfWorkerThreads()
      Description copied from interface: JobSchedulerConfig
      The number of worker threads to start.
      Specified by:
      numberOfWorkerThreads in interface JobSchedulerConfig
      Returns:
      number of worker threads