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 classQuartzRuntimeConfig.QuartzMisfirePolicyConfig
-
Field Summary
Fields Modifier and Type Field Description StringinstanceNameThe name of the Quartz instance.Map<String,QuartzRuntimeConfig.QuartzMisfirePolicyConfig>misfirePolicyPerJobsMisfire policy per job configuration.DurationmisfireThresholdDefines how late the schedulers should be to be considered misfired.booleanrunBlockingScheduledMethodOnQuartzThreadWhen set totrue, blocking scheduled methods are invoked on a thread managed by Quartz instead of a thread from the regular Quarkus thread pool (default).DurationshutdownWaitTimeThe maximum amount of time Quarkus will wait for currently running jobs to finish.QuartzStartModestartModeScheduler can be started in different modes: normal, forced or halted.intthreadCountThe size of scheduler thread pool.intthreadPriorityThread 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 aScheduledbusiness 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.
-
shutdownWaitTime
@ConfigItem(defaultValue="10") public Duration shutdownWaitTime
The maximum amount of time Quarkus will wait for currently running jobs to finish. If the value is0, then Quarkus will not wait at all for these jobs to finish - it will callorg.quartz.Scheduler.shutdown(false)in this case.
-
misfirePolicyPerJobs
@ConfigDocSection @ConfigDocMapKey("identity") @ConfigItem(name="misfire-policy") public Map<String,QuartzRuntimeConfig.QuartzMisfirePolicyConfig> misfirePolicyPerJobsMisfire policy per job configuration.
-
runBlockingScheduledMethodOnQuartzThread
@ConfigItem(defaultValue="false") public boolean runBlockingScheduledMethodOnQuartzThread
When set totrue, blocking scheduled methods are invoked on a thread managed by Quartz instead of a thread from the regular Quarkus thread pool (default).When this option is enabled, blocking scheduled methods do not run on a
duplicated context.
-
-