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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.api.entity.Identity
Identity.IdentityMixin
 
Method Summary
 Property<Integer> garbageCollectorRhythmSeconds()
           
 Property<Integer> pulseRhythmSeconds()
           
 Property<Boolean> stopViolently()
           
 Property<Integer> workersCount()
           
 Property<Integer> workQueueSize()
           
 
Methods inherited from interface org.qi4j.api.entity.Identity
identity
 
Methods inherited from interface org.qi4j.api.composite.Composite
metaInfo, type
 

Method Detail

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.