Package org.graylog.scheduler
Class DefaultJobSchedulerConfig
java.lang.Object
org.graylog.scheduler.DefaultJobSchedulerConfig
- All Implemented Interfaces:
JobSchedulerConfig
This is the default
JobSchedulerConfig
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if the scheduler can execute the next loop iteration.int
The number of worker threads to start.
-
Constructor Details
-
DefaultJobSchedulerConfig
-
-
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 interfaceJobSchedulerConfig
- 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 interfaceJobSchedulerConfig
- Returns:
- number of worker threads
-