org.qi4j.library.scheduler
Interface SchedulerConfiguration
- All Superinterfaces:
- Composite, ConfigurationComposite, 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<java.lang.Integer> workersCount()
- Returns:
- Number of worker threads, optional and defaults to the number of available cores.
workQueueSize
@Optional
Property<java.lang.Integer> workQueueSize()
- Returns:
- Size of the queue to use for holding tasks before they are run, optional and defaults to 10.
stopViolently
@UseDefaults
Property<java.lang.Boolean> stopViolently()
- Returns:
- If the scheduler must stop without waiting for running tasks, optional and defaults to false.