Quartz2

Quartz2

Scheme: quartz2

This endpoint represent each job to be created in scheduler. When consumer is started or stopped, it will call back into {@link #onConsumerStart(QuartzConsumer)} to add/resume or {@link #onConsumerStop(QuartzConsumer)} to pause the scheduler trigger.

Name Kind Type Required Deprecated Default Value Enum Values Description
groupName path java.lang.String false Camel The quartz group name to use. The combination of group name and timer name should be unique.
triggerName path java.lang.String true false The quartz timer name to use. The combination of group name and timer name should be unique.
cron parameter java.lang.String false Specifies a cron expression to define when to trigger.
stateful parameter boolean false Uses a Quartz @PersistJobDataAfterExecution and @DisallowConcurrentExecution instead of the default job.
fireNow parameter boolean false If it is true will fire the trigger when the route is start when using SimpleTrigger.
deleteJob parameter boolean false true If set to true, then the trigger automatically delete when route stop. Else if set to false, it will remain in scheduler. When set to false, it will also mean user may reuse pre-configured trigger with camel Uri. Just ensure the names match. Notice you cannot have both deleteJob and pauseJob set to true.
pauseJob parameter boolean false If set to true, then the trigger automatically pauses when route stop. Else if set to false, it will remain in scheduler. When set to false, it will also mean user may reuse pre-configured trigger with camel Uri. Just ensure the names match. Notice you cannot have both deleteJob and pauseJob set to true.
durableJob parameter boolean false Whether or not the job should remain stored after it is orphaned (no triggers point to it).
recoverableJob parameter boolean false Instructs the scheduler whether or not the job should be re-executed if a 'recovery' or 'fail-over' situation is encountered.
triggerStartDelay parameter long false 500 In case of scheduler has already started, we want the trigger start slightly after current time to ensure endpoint is fully started before the job kicks in.
usingFixedCamelContextName parameter boolean false If it is true, JobDataMap uses the CamelContext name directly to reference the CamelContext, if it is false, JobDataMap uses use the CamelContext management name which could be changed during the deploy time.
exchangePattern parameter org.apache.camel.ExchangePattern false InOnly InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange
synchronous parameter boolean false false Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).

quartz2 consumer

A factory for QuartzEndpoint. This component will hold a Quartz Scheduler that will provide scheduled timer based endpoint that generate a QuartzMessage to a route. Currently it support Cron and Simple trigger scheduling type.

This component uses Quartz 2.x API and provide all the features from "camel-quartz". It has reused some of the code, but mostly has been re-written in attempt to be more easier to maintain, and use Quartz more fully.