@Singleton public class DefaultJobSchedulerConfig extends Object implements JobSchedulerConfig
JobSchedulerConfig.| Constructor and Description |
|---|
DefaultJobSchedulerConfig(LeaderElectionService leaderElectionService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExecute()
Determines if the scheduler can execute the next loop iteration.
|
int |
numberOfWorkerThreads()
The number of worker threads to start.
|
@Inject public DefaultJobSchedulerConfig(LeaderElectionService leaderElectionService)
public boolean canExecute()
JobSchedulerConfigcanExecute in interface JobSchedulerConfigpublic int numberOfWorkerThreads()
JobSchedulerConfignumberOfWorkerThreads in interface JobSchedulerConfigCopyright © 2012–2022 Graylog, Inc.. All rights reserved.