@ConfigRoot(phase=RUN_TIME) public class QuartzRuntimeConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
Optional<Boolean> |
forceStart
Deprecated.
use quarkus.quartz.start-mode=forced instead.
|
String |
instanceName
The name of the Quartz instance.
|
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 and Description |
|---|
QuartzRuntimeConfig() |
@ConfigItem(defaultValue="QuarkusQuartzScheduler") public String instanceName
@ConfigItem(defaultValue="25") public int threadCount
@ConfigItem(defaultValue="5") public int threadPriority
@Deprecated @ConfigItem public Optional<Boolean> forceStart
Scheduled business method is found.
If set to true the scheduler will be started even if no scheduled business methods are found. This is necessary for
"pure" programmatic scheduling.@ConfigItem(defaultValue="normal") public QuartzStartMode startMode
Scheduled 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.Copyright © 2021 JBoss by Red Hat. All rights reserved.