Package io.quarkus.scheduler.runtime
Class SchedulerConfig
java.lang.Object
io.quarkus.scheduler.runtime.SchedulerConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.cronutils.model.CronTypeThe syntax used in CRON expressions.booleanScheduled task metrics will be enabled if a metrics extension is present and this value is true.booleanControls whether tracing is enabled.booleanBy default, only oneSchedulerimplementation is used. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
cronType
@ConfigItem(defaultValue="quartz") public com.cronutils.model.CronType cronTypeThe syntax used in CRON expressions.- See Also:
-
Scheduled.cron()
-
metricsEnabled
@ConfigItem(name="metrics.enabled") public boolean metricsEnabledScheduled task metrics will be enabled if a metrics extension is present and this value is true. -
tracingEnabled
@ConfigItem(name="tracing.enabled") public boolean tracingEnabledControls whether tracing is enabled. If set to true and the OpenTelemetry extension is present, tracing will be enabled, creating automatic Spans for each scheduled task. -
useCompositeScheduler
@ConfigItem(defaultValue="false") public boolean useCompositeSchedulerBy default, only oneSchedulerimplementation is used. If set totruethen a compositeSchedulerthat delegates to all running implementations is used.Scheduler implementations will be started depending on the value of
quarkus.scheduler.start-mode, i.e. the scheduler is not started unless a relevantScheduledbusiness method is found.
-
-
Constructor Details
-
SchedulerConfig
public SchedulerConfig()
-