public static interface SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder
extends org.apache.camel.builder.EndpointConsumerBuilder
| Modifier and Type | Method and Description |
|---|---|
default SqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder |
advanced() |
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
allowNamedParameters(boolean allowNamedParameters)
Whether to allow using named parameters in the queries.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
allowNamedParameters(String allowNamedParameters)
Whether to allow using named parameters in the queries.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
backoffErrorThreshold(int backoffErrorThreshold)
The number of subsequent error polls (failed due some error) that
should happen before the backoffMultipler should kick-in.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
backoffErrorThreshold(String backoffErrorThreshold)
The number of subsequent error polls (failed due some error) that
should happen before the backoffMultipler should kick-in.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
backoffIdleThreshold(int backoffIdleThreshold)
The number of subsequent idle polls that should happen before the
backoffMultipler should kick-in.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
backoffIdleThreshold(String backoffIdleThreshold)
The number of subsequent idle polls that should happen before the
backoffMultipler should kick-in.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
backoffMultiplier(int backoffMultiplier)
To let the scheduled polling consumer backoff if there has been a
number of subsequent idles/errors in a row.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
backoffMultiplier(String backoffMultiplier)
To let the scheduled polling consumer backoff if there has been a
number of subsequent idles/errors in a row.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
breakBatchOnConsumeFail(boolean breakBatchOnConsumeFail)
Sets whether to break batch if onConsume failed.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
breakBatchOnConsumeFail(String breakBatchOnConsumeFail)
Sets whether to break batch if onConsume failed.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
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 SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
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 SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
dataSource(Object dataSource)
Sets the DataSource to use to communicate with the database.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
dataSource(String dataSource)
Sets the DataSource to use to communicate with the database.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
dataSourceRef(String dataSourceRef)
Deprecated.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
delay(long delay)
Milliseconds before the next poll.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
delay(String delay)
Milliseconds before the next poll.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
expectedUpdateCount(int expectedUpdateCount)
Sets an expected update count to validate when using onConsume.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
expectedUpdateCount(String expectedUpdateCount)
Sets an expected update count to validate when using onConsume.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
greedy(boolean greedy)
If greedy is enabled, then the ScheduledPollConsumer will run
immediately again, if the previous run polled 1 or more messages.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
greedy(String greedy)
If greedy is enabled, then the ScheduledPollConsumer will run
immediately again, if the previous run polled 1 or more messages.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
initialDelay(long initialDelay)
Milliseconds before the first poll starts.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
initialDelay(String initialDelay)
Milliseconds before the first poll starts.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
maxMessagesPerPoll(int maxMessagesPerPoll)
Sets the maximum number of messages to poll.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
maxMessagesPerPoll(String maxMessagesPerPoll)
Sets the maximum number of messages to poll.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
onConsume(String onConsume)
After processing each row then this query can be executed, if the
Exchange was processed successfully, for example to mark the row as
processed.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
onConsumeBatchComplete(String onConsumeBatchComplete)
After processing the entire batch, this query can be executed to bulk
update rows etc.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
onConsumeFailed(String onConsumeFailed)
After processing each row then this query can be executed, if the
Exchange failed, for example to mark the row as failed.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
outputClass(String outputClass)
Specify the full package and class name to use as conversion when
outputType=SelectOne.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
outputHeader(String outputHeader)
Store the query result in a header instead of the message body.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
outputType(SqlEndpointBuilderFactory.SqlOutputType outputType)
Make the output of consumer or producer to SelectList as List of Map,
or SelectOne as single Java object in the following way: a) If the
query has only single column, then that JDBC Column object is
returned.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
outputType(String outputType)
Make the output of consumer or producer to SelectList as List of Map,
or SelectOne as single Java object in the following way: a) If the
query has only single column, then that JDBC Column object is
returned.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
repeatCount(long repeatCount)
Specifies a maximum limit of number of fires.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
repeatCount(String repeatCount)
Specifies a maximum limit of number of fires.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
routeEmptyResultSet(boolean routeEmptyResultSet)
Sets whether empty resultset should be allowed to be sent to the next
hop.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
routeEmptyResultSet(String routeEmptyResultSet)
Sets whether empty resultset should be allowed to be sent to the next
hop.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
runLoggingLevel(org.apache.camel.LoggingLevel runLoggingLevel)
The consumer logs a start/complete log line when it polls.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
runLoggingLevel(String runLoggingLevel)
The consumer logs a start/complete log line when it polls.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
scheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
Allows for configuring a custom/shared thread pool to use for the
consumer.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
scheduledExecutorService(String scheduledExecutorService)
Allows for configuring a custom/shared thread pool to use for the
consumer.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
scheduler(Object scheduler)
To use a cron scheduler from either camel-spring or camel-quartz
component.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
scheduler(String scheduler)
To use a cron scheduler from either camel-spring or camel-quartz
component.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
schedulerProperties(Map values)
To configure additional properties when using a custom scheduler or
any of the Quartz, Spring based scheduler.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
schedulerProperties(String key,
Object value)
To configure additional properties when using a custom scheduler or
any of the Quartz, Spring based scheduler.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
sendEmptyMessageWhenIdle(boolean sendEmptyMessageWhenIdle)
If the polling consumer did not poll any files, you can enable this
option to send an empty message (no body) instead.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
sendEmptyMessageWhenIdle(String sendEmptyMessageWhenIdle)
If the polling consumer did not poll any files, you can enable this
option to send an empty message (no body) instead.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
separator(char separator)
The separator to use when parameter values is taken from message body
(if the body is a String type), to be inserted at # placeholders.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
separator(String separator)
The separator to use when parameter values is taken from message body
(if the body is a String type), to be inserted at # placeholders.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
startScheduler(boolean startScheduler)
Whether the scheduler should be auto started.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
startScheduler(String startScheduler)
Whether the scheduler should be auto started.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
timeUnit(String timeUnit)
Time unit for initialDelay and delay options.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
timeUnit(TimeUnit timeUnit)
Time unit for initialDelay and delay options.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
transacted(boolean transacted)
Enables or disables transaction.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
transacted(String transacted)
Enables or disables transaction.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
useFixedDelay(boolean useFixedDelay)
Controls if fixed delay or fixed rate is used.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
useFixedDelay(String useFixedDelay)
Controls if fixed delay or fixed rate is used.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
useIterator(boolean useIterator)
Sets how resultset should be delivered to route.
|
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder |
useIterator(String useIterator)
Sets how resultset should be delivered to route.
|
default SqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder advanced()
default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder allowNamedParameters(boolean allowNamedParameters)
allowNamedParameters - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder allowNamedParameters(String allowNamedParameters)
allowNamedParameters - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder dataSource(Object dataSource)
dataSource - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder dataSource(String dataSource)
dataSource - the value to set@Deprecated default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder dataSourceRef(String dataSourceRef)
dataSourceRef - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder outputClass(String outputClass)
outputClass - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder outputHeader(String outputHeader)
outputHeader - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder outputType(SqlEndpointBuilderFactory.SqlOutputType outputType)
outputType - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder outputType(String outputType)
outputType - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder separator(char separator)
separator - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder separator(String separator)
separator - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder breakBatchOnConsumeFail(boolean breakBatchOnConsumeFail)
breakBatchOnConsumeFail - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder breakBatchOnConsumeFail(String breakBatchOnConsumeFail)
breakBatchOnConsumeFail - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
bridgeErrorHandler - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler)
bridgeErrorHandler - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder expectedUpdateCount(int expectedUpdateCount)
expectedUpdateCount - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder expectedUpdateCount(String expectedUpdateCount)
expectedUpdateCount - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder maxMessagesPerPoll(int maxMessagesPerPoll)
maxMessagesPerPoll - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder maxMessagesPerPoll(String maxMessagesPerPoll)
maxMessagesPerPoll - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder onConsume(String onConsume)
onConsume - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder onConsumeBatchComplete(String onConsumeBatchComplete)
onConsumeBatchComplete - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder onConsumeFailed(String onConsumeFailed)
onConsumeFailed - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder routeEmptyResultSet(boolean routeEmptyResultSet)
routeEmptyResultSet - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder routeEmptyResultSet(String routeEmptyResultSet)
routeEmptyResultSet - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder sendEmptyMessageWhenIdle(boolean sendEmptyMessageWhenIdle)
sendEmptyMessageWhenIdle - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder sendEmptyMessageWhenIdle(String sendEmptyMessageWhenIdle)
sendEmptyMessageWhenIdle - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder transacted(boolean transacted)
transacted - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder transacted(String transacted)
transacted - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder useIterator(boolean useIterator)
useIterator - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder useIterator(String useIterator)
useIterator - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder backoffErrorThreshold(int backoffErrorThreshold)
backoffErrorThreshold - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder backoffErrorThreshold(String backoffErrorThreshold)
backoffErrorThreshold - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder backoffIdleThreshold(int backoffIdleThreshold)
backoffIdleThreshold - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder backoffIdleThreshold(String backoffIdleThreshold)
backoffIdleThreshold - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder backoffMultiplier(int backoffMultiplier)
backoffMultiplier - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder backoffMultiplier(String backoffMultiplier)
backoffMultiplier - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder delay(long delay)
delay - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder delay(String delay)
delay - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder greedy(boolean greedy)
greedy - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder greedy(String greedy)
greedy - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder initialDelay(long initialDelay)
initialDelay - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder initialDelay(String initialDelay)
initialDelay - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder repeatCount(long repeatCount)
repeatCount - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder repeatCount(String repeatCount)
repeatCount - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder runLoggingLevel(org.apache.camel.LoggingLevel runLoggingLevel)
runLoggingLevel - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder runLoggingLevel(String runLoggingLevel)
runLoggingLevel - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder scheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
scheduledExecutorService - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder scheduledExecutorService(String scheduledExecutorService)
scheduledExecutorService - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder scheduler(Object scheduler)
scheduler - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder scheduler(String scheduler)
scheduler - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder schedulerProperties(String key, Object value)
key - the option keyvalue - the option valuedefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder schedulerProperties(Map values)
values - the valuesdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder startScheduler(boolean startScheduler)
startScheduler - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder startScheduler(String startScheduler)
startScheduler - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder timeUnit(TimeUnit timeUnit)
timeUnit - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder timeUnit(String timeUnit)
timeUnit - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder useFixedDelay(boolean useFixedDelay)
useFixedDelay - the value to setdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder useFixedDelay(String useFixedDelay)
useFixedDelay - the value to setApache Camel