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 longclusterCheckinIntervalThe frequency (in milliseconds) at which the scheduler instance checks-in with other instances of the cluster.booleanclusteredEnable cluster mode or not.Optional<String>dataSourceNameThe name of the datasource to use.Map<String,QuartzExtensionPointConfig>instanceIdGeneratorsInstance ID generators.Map<String,QuartzExtensionPointConfig>jobListenersJob listeners.Map<String,QuartzExtensionPointConfig>pluginsPlugins.Optional<String>selectWithLockSqlThe SQL string that selects a row in the "LOCKS" table and places a lock on the row.StoreTypestoreTypeThe type of store to use.StringtablePrefixThe prefix for quartz job store tables.Map<String,QuartzExtensionPointConfig>triggerListenersTrigger 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_CMTorStoreType.JDBC_TXconfiguration 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> instanceIdGeneratorsInstance ID generators.
-
triggerListeners
@ConfigItem @ConfigDocMapKey("listener-name") @ConfigDocSection public Map<String,QuartzExtensionPointConfig> triggerListenersTrigger listeners.
-
jobListeners
@ConfigItem @ConfigDocMapKey("listener-name") @ConfigDocSection public Map<String,QuartzExtensionPointConfig> jobListenersJob listeners.
-
plugins
@ConfigItem @ConfigDocMapKey("plugin-name") @ConfigDocSection public Map<String,QuartzExtensionPointConfig> pluginsPlugins.
-
-