Interface QuartzEndpointBuilderFactory.QuartzEndpointBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- Enclosing interface:
- QuartzEndpointBuilderFactory
public static interface QuartzEndpointBuilderFactory.QuartzEndpointBuilder extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint for the Quartz component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default QuartzEndpointBuilderFactory.AdvancedQuartzEndpointBuilder
advanced()
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
autoStartScheduler(boolean autoStartScheduler)
Whether or not the scheduler should be auto started.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
autoStartScheduler(String autoStartScheduler)
Whether or not the scheduler should be auto started.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
bridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
bridgeErrorHandler(String bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
cron(String cron)
Specifies a cron expression to define when to trigger.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
deleteJob(boolean deleteJob)
If set to true, then the trigger automatically delete when route stop.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
deleteJob(String deleteJob)
If set to true, then the trigger automatically delete when route stop.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
durableJob(boolean durableJob)
Whether or not the job should remain stored after it is orphaned (no triggers point to it).default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
durableJob(String durableJob)
Whether or not the job should remain stored after it is orphaned (no triggers point to it).default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
pauseJob(boolean pauseJob)
If set to true, then the trigger automatically pauses when route stop.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
pauseJob(String pauseJob)
If set to true, then the trigger automatically pauses when route stop.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
recoverableJob(boolean recoverableJob)
Instructs the scheduler whether or not the job should be re-executed if a 'recovery' or 'fail-over' situation is encountered.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
recoverableJob(String recoverableJob)
Instructs the scheduler whether or not the job should be re-executed if a 'recovery' or 'fail-over' situation is encountered.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
startDelayedSeconds(int startDelayedSeconds)
Seconds to wait before starting the quartz scheduler.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
startDelayedSeconds(String startDelayedSeconds)
Seconds to wait before starting the quartz scheduler.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
stateful(boolean stateful)
Uses a Quartz PersistJobDataAfterExecution and DisallowConcurrentExecution instead of the default job.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
stateful(String stateful)
Uses a Quartz PersistJobDataAfterExecution and DisallowConcurrentExecution instead of the default job.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
triggerStartDelay(long triggerStartDelay)
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.default QuartzEndpointBuilderFactory.QuartzEndpointBuilder
triggerStartDelay(String triggerStartDelay)
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.
-
-
-
Method Detail
-
advanced
default QuartzEndpointBuilderFactory.AdvancedQuartzEndpointBuilder advanced()
-
bridgeErrorHandler
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder bridgeErrorHandler(String bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
cron
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder cron(String cron)
Specifies a cron expression to define when to trigger. The option is a: <code>java.lang.String</code> type. Group: consumer- Parameters:
cron
- the value to set- Returns:
- the dsl builder
-
deleteJob
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder deleteJob(boolean deleteJob)
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. The option is a: <code>boolean</code> type. Default: true Group: consumer- Parameters:
deleteJob
- the value to set- Returns:
- the dsl builder
-
deleteJob
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder deleteJob(String deleteJob)
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. The option will be converted to a <code>boolean</code> type. Default: true Group: consumer- Parameters:
deleteJob
- the value to set- Returns:
- the dsl builder
-
durableJob
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder durableJob(boolean durableJob)
Whether or not the job should remain stored after it is orphaned (no triggers point to it). The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
durableJob
- the value to set- Returns:
- the dsl builder
-
durableJob
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder durableJob(String durableJob)
Whether or not the job should remain stored after it is orphaned (no triggers point to it). The option will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
durableJob
- the value to set- Returns:
- the dsl builder
-
pauseJob
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder pauseJob(boolean pauseJob)
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. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
pauseJob
- the value to set- Returns:
- the dsl builder
-
pauseJob
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder pauseJob(String pauseJob)
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. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
pauseJob
- the value to set- Returns:
- the dsl builder
-
recoverableJob
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder recoverableJob(boolean recoverableJob)
Instructs the scheduler whether or not the job should be re-executed if a 'recovery' or 'fail-over' situation is encountered. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
recoverableJob
- the value to set- Returns:
- the dsl builder
-
recoverableJob
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder recoverableJob(String recoverableJob)
Instructs the scheduler whether or not the job should be re-executed if a 'recovery' or 'fail-over' situation is encountered. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
recoverableJob
- the value to set- Returns:
- the dsl builder
-
stateful
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder stateful(boolean stateful)
Uses a Quartz PersistJobDataAfterExecution and DisallowConcurrentExecution instead of the default job. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
stateful
- the value to set- Returns:
- the dsl builder
-
stateful
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder stateful(String stateful)
Uses a Quartz PersistJobDataAfterExecution and DisallowConcurrentExecution instead of the default job. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
stateful
- the value to set- Returns:
- the dsl builder
-
autoStartScheduler
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder autoStartScheduler(boolean autoStartScheduler)
Whether or not the scheduler should be auto started. The option is a: <code>boolean</code> type. Default: true Group: scheduler- Parameters:
autoStartScheduler
- the value to set- Returns:
- the dsl builder
-
autoStartScheduler
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder autoStartScheduler(String autoStartScheduler)
Whether or not the scheduler should be auto started. The option will be converted to a <code>boolean</code> type. Default: true Group: scheduler- Parameters:
autoStartScheduler
- the value to set- Returns:
- the dsl builder
-
startDelayedSeconds
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder startDelayedSeconds(int startDelayedSeconds)
Seconds to wait before starting the quartz scheduler. The option is a: <code>int</code> type. Group: scheduler- Parameters:
startDelayedSeconds
- the value to set- Returns:
- the dsl builder
-
startDelayedSeconds
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder startDelayedSeconds(String startDelayedSeconds)
Seconds to wait before starting the quartz scheduler. The option will be converted to a <code>int</code> type. Group: scheduler- Parameters:
startDelayedSeconds
- the value to set- Returns:
- the dsl builder
-
triggerStartDelay
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder triggerStartDelay(long triggerStartDelay)
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. Negative value shifts trigger start time in the past. The option is a: <code>long</code> type. Default: 500 Group: scheduler- Parameters:
triggerStartDelay
- the value to set- Returns:
- the dsl builder
-
triggerStartDelay
default QuartzEndpointBuilderFactory.QuartzEndpointBuilder triggerStartDelay(String triggerStartDelay)
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. Negative value shifts trigger start time in the past. The option will be converted to a <code>long</code> type. Default: 500 Group: scheduler- Parameters:
triggerStartDelay
- the value to set- Returns:
- the dsl builder
-
-