Class QuartzBuildTimeConfig
- java.lang.Object
-
- io.quarkus.quartz.runtime.QuartzBuildTimeConfig
-
@ConfigRoot(phase=BUILD_AND_RUN_TIME_FIXED) public class QuartzBuildTimeConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description long
clusterCheckinInterval
The frequency (in milliseconds) at which the scheduler instance checks-in with other instances of the cluster.boolean
clustered
Enable cluster mode or not.Optional<String>
dataSourceName
The name of the datasource to use.Map<String,QuartzExtensionPointConfig>
instanceIdGenerators
Instance ID generators.Map<String,QuartzExtensionPointConfig>
jobListeners
Job listeners.Map<String,QuartzExtensionPointConfig>
plugins
Plugins.Optional<String>
selectWithLockSql
The SQL string that selects a row in the "LOCKS" table and places a lock on the row.StoreType
storeType
The type of store to use.String
tablePrefix
The prefix for quartz job store tables.Map<String,QuartzExtensionPointConfig>
triggerListeners
Trigger listeners.
-
Constructor Summary
Constructors Constructor Description QuartzBuildTimeConfig()
-
-
-
Field Detail
-
clustered
@ConfigItem public boolean clustered
Enable cluster mode or not.If enabled make sure to set the appropriate cluster properties.
-
clusterCheckinInterval
@ConfigItem(defaultValue="15000") public long clusterCheckinInterval
The frequency (in milliseconds) at which the scheduler instance checks-in with other instances of the cluster.
-
storeType
@ConfigItem(defaultValue="ram") public StoreType storeType
The type of store to use.When using
StoreType.JDBC_CMT
orStoreType.JDBC_TX
configuration values make sure that you have the datasource configured. See Configuring your datasource for more information.To create Quartz tables, you can perform a schema migration via the Flyway extension using a SQL script matching your database picked from Quartz repository.
-
dataSourceName
@ConfigItem(name="datasource") public Optional<String> dataSourceName
The name of the datasource to use.Optionally needed when using the `jdbc-tx` or `jdbc-cmt` store types. If not specified, defaults to using the default datasource.
-
tablePrefix
@ConfigItem(defaultValue="QRTZ_") public String tablePrefix
The prefix for quartz job store tables.Ignored if using a `ram` store.
-
selectWithLockSql
@ConfigItem public Optional<String> selectWithLockSql
The SQL string that selects a row in the "LOCKS" table and places a lock on the row.If not set, the default value of Quartz applies, for which the "{0}" is replaced during run-time with the `table-prefix`, the "{1}" with the `instance-name`.
An example SQL string `SELECT * FROM {0}LOCKS WHERE SCHED_NAME = {1} AND LOCK_NAME = ? FOR UPDATE`
-
instanceIdGenerators
@ConfigItem @ConfigDocMapKey("generator-name") @ConfigDocSection public Map<String,QuartzExtensionPointConfig> instanceIdGenerators
Instance ID generators.
-
triggerListeners
@ConfigItem @ConfigDocMapKey("listener-name") @ConfigDocSection public Map<String,QuartzExtensionPointConfig> triggerListeners
Trigger listeners.
-
jobListeners
@ConfigItem @ConfigDocMapKey("listener-name") @ConfigDocSection public Map<String,QuartzExtensionPointConfig> jobListeners
Job listeners.
-
plugins
@ConfigItem @ConfigDocMapKey("plugin-name") @ConfigDocSection public Map<String,QuartzExtensionPointConfig> plugins
Plugins.
-
-