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
triggerName path java.lang.String true false
cron parameter java.lang.String false
stateful parameter boolean false
fireNow parameter boolean false
deleteJob parameter boolean false true
pauseJob parameter boolean false
durableJob parameter boolean false
recoverableJob parameter boolean false
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, the CamelContext name is used, if it is false, 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.