Package io.quarkus.quartz.runtime
Class QuartzRuntimeConfig
- java.lang.Object
-
- io.quarkus.quartz.runtime.QuartzRuntimeConfig
-
@ConfigRoot(phase=RUN_TIME) public class QuartzRuntimeConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QuartzRuntimeConfig.QuartzMisfirePolicyConfig
-
Field Summary
Fields Modifier and Type Field Description String
instanceName
The name of the Quartz instance.Map<String,QuartzRuntimeConfig.QuartzMisfirePolicyConfig>
misfirePolicyPerJobs
Misfire policy per job configuration.Duration
misfireThreshold
Defines how late the schedulers should be to be considered misfired.QuartzStartMode
startMode
Scheduler can be started in different modes: normal, forced or halted.int
threadCount
The size of scheduler thread pool.int
threadPriority
Thread priority of worker threads in the pool.
-
Constructor Summary
Constructors Constructor Description QuartzRuntimeConfig()
-
-
-
Field Detail
-
instanceName
@ConfigItem(defaultValue="QuarkusQuartzScheduler") public String instanceName
The name of the Quartz instance.
-
threadCount
@ConfigItem(defaultValue="25") public int threadCount
The size of scheduler thread pool. This will initialize the number of worker threads in the pool.
-
threadPriority
@ConfigItem(defaultValue="5") public int threadPriority
Thread priority of worker threads in the pool.
-
misfireThreshold
@ConfigItem(defaultValue="60") public Duration misfireThreshold
Defines how late the schedulers should be to be considered misfired.
-
startMode
@ConfigItem(defaultValue="normal") public QuartzStartMode startMode
Scheduler can be started in different modes: normal, forced or halted. By default, the scheduler is not started unless aScheduled
business method is found. If set to "forced", scheduler will be started even if no scheduled business methods are found. This is necessary for "pure" programmatic scheduling. Additionally, setting it to "halted" will behave just like forced mode but the scheduler will not start triggering jobs until an explicit start is called from the main scheduler. This is useful to programmatically register listeners before scheduler starts performing some work.
-
misfirePolicyPerJobs
@ConfigDocSection @ConfigDocMapKey("identity") @ConfigItem(name="misfire-policy") public Map<String,QuartzRuntimeConfig.QuartzMisfirePolicyConfig> misfirePolicyPerJobs
Misfire policy per job configuration.
-
-