Package io.quarkus.quartz.runtime
Class QuartzRuntimeConfig
java.lang.Object
io.quarkus.quartz.runtime.QuartzRuntimeConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe amount of time in milliseconds that a trigger is allowed to be acquired and fired ahead of its scheduled fire time.intThe maximum number of triggers that a scheduler node is allowed to acquire (for firing) at once.Cron trigger default configurationThe identifier of Quartz instance that must be unique for all schedulers working as if they are the same logical Scheduler within a cluster.The name of the Quartz instance.Misfire policy per job configuration.Defines how late the schedulers should be to be considered misfired.booleanWhen set totrue, blocking scheduled methods are invoked on a thread managed by Quartz instead of a thread from the regular Quarkus thread pool (default).The maximum amount of time Quarkus will wait for currently running jobs to finish.Simple trigger default configurationDeprecated.intThe size of scheduler thread pool.intThread priority of worker threads in the pool. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
instanceName
The name of the Quartz instance. -
instanceId
The identifier of Quartz instance that must be unique for all schedulers working as if they are the same logical Scheduler within a cluster. Use the default valueAUTOor some of the configured instance ID generators if you wish the identifier to be generated for you. -
batchTriggerAcquisitionFireAheadTimeWindow
@ConfigItem(defaultValue="0") public long batchTriggerAcquisitionFireAheadTimeWindowThe amount of time in milliseconds that a trigger is allowed to be acquired and fired ahead of its scheduled fire time. -
batchTriggerAcquisitionMaxCount
@ConfigItem(defaultValue="1") public int batchTriggerAcquisitionMaxCountThe maximum number of triggers that a scheduler node is allowed to acquire (for firing) at once. -
threadCount
@ConfigItem(defaultValue="25") public int threadCountThe size of scheduler thread pool. This will initialize the number of worker threads in the pool. -
threadPriority
@ConfigItem(defaultValue="5") public int threadPriorityThread priority of worker threads in the pool. -
misfireThreshold
Defines how late the schedulers should be to be considered misfired. -
startMode
Deprecated.Usequarkus.scheduler.start-modeinstead.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
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. -
simpleTriggerConfig
Simple trigger default configuration -
cronTriggerConfig
Cron trigger default configuration -
misfirePolicyPerJobs
@ConfigDocSection @ConfigDocMapKey("identity") @ConfigItem(name="misfire-policy") public Map<String,QuartzRuntimeConfig.QuartzMisfirePolicyConfig> misfirePolicyPerJobsMisfire policy per job configuration. -
runBlockingScheduledMethodOnQuartzThread
@ConfigItem(defaultValue="false") public boolean runBlockingScheduledMethodOnQuartzThreadWhen 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.
-
-
Constructor Details
-
QuartzRuntimeConfig
public QuartzRuntimeConfig()
-
quarkus.scheduler.start-modeinstead.