org.qi4j.library.scheduler
Interface SchedulerConfiguration
- All Superinterfaces:
- Composite, ConfigurationComposite, Entity, EntityComposite, Identity
public interface SchedulerConfiguration
- extends ConfigurationComposite
Configuration for the Scheduler
.
Every property has a default value, you can use a Scheduler
without providing any.
workersCount
@Optional
Property<Integer> workersCount()
- Returns:
- Number of worker threads, optional and defaults to the number of available cores.
workQueueSize
@Optional
Property<Integer> workQueueSize()
- Returns:
- Size of the queue to use for holding tasks before they are run, optional and defaults to 10.
pulseRhythmSeconds
@Optional
Property<Integer> pulseRhythmSeconds()
- Returns:
- SchedulerPulse rythm in seconds, optional and default to 60.
garbageCollectorRhythmSeconds
@Optional
Property<Integer> garbageCollectorRhythmSeconds()
- Returns:
- SchedulerGarbageCollector rythm in seconds, optional and default to 600.
stopViolently
@UseDefaults
Property<Boolean> stopViolently()
- Returns:
- If the scheduler must stop without waiting for running tasks, optional and defaults to false.