Class SchedulerConfig

java.lang.Object
io.quarkus.scheduler.runtime.SchedulerConfig

@ConfigRoot(phase=BUILD_AND_RUN_TIME_FIXED) public class SchedulerConfig extends Object
  • Field Details

    • cronType

      @ConfigItem(defaultValue="quartz") public com.cronutils.model.CronType cronType
      The syntax used in CRON expressions.
      See Also:
      • Scheduled.cron()
    • metricsEnabled

      @ConfigItem(name="metrics.enabled") public boolean metricsEnabled
      Scheduled task metrics will be enabled if a metrics extension is present and this value is true.
    • tracingEnabled

      @ConfigItem(name="tracing.enabled") public boolean tracingEnabled
      Controls 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 useCompositeScheduler
      By default, only one Scheduler implementation is used. If set to true then a composite Scheduler that 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 relevant Scheduled business method is found.

  • Constructor Details

    • SchedulerConfig

      public SchedulerConfig()