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)
boolean type.
Default: true
Group: commondefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder allowNamedParameters(String allowNamedParameters)
boolean type.
Default: true
Group: commondefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder dataSource(Object dataSource)
javax.sql.DataSource type.
Group: commondefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder dataSource(String dataSource)
javax.sql.DataSource
type.
Group: common@Deprecated default SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder dataSourceRef(String dataSourceRef)
java.lang.String type.
Group: commondefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder outputClass(String outputClass)
java.lang.String type.
Group: commondefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder outputHeader(String outputHeader)
java.lang.String type.
Group: commondefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder outputType(SqlEndpointBuilderFactory.SqlOutputType outputType)
org.apache.camel.component.sql.SqlOutputType type.
Default: SelectList
Group: commondefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder outputType(String outputType)
org.apache.camel.component.sql.SqlOutputType type.
Default: SelectList
Group: commondefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder separator(char separator)
char type.
Default: ,
Group: commondefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder separator(String separator)
char type.
Default: ,
Group: commondefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder breakBatchOnConsumeFail(boolean breakBatchOnConsumeFail)
boolean type.
Default: false
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder breakBatchOnConsumeFail(String breakBatchOnConsumeFail)
boolean type.
Default: false
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
boolean type.
Default: false
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler)
boolean type.
Default: false
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder expectedUpdateCount(int expectedUpdateCount)
int type.
Default: -1
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder expectedUpdateCount(String expectedUpdateCount)
int type.
Default: -1
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder maxMessagesPerPoll(int maxMessagesPerPoll)
int type.
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder maxMessagesPerPoll(String maxMessagesPerPoll)
int type.
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder onConsume(String onConsume)
java.lang.String type.
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder onConsumeBatchComplete(String onConsumeBatchComplete)
java.lang.String type.
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder onConsumeFailed(String onConsumeFailed)
java.lang.String type.
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder routeEmptyResultSet(boolean routeEmptyResultSet)
boolean type.
Default: false
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder routeEmptyResultSet(String routeEmptyResultSet)
boolean type.
Default: false
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder sendEmptyMessageWhenIdle(boolean sendEmptyMessageWhenIdle)
boolean type.
Default: false
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder sendEmptyMessageWhenIdle(String sendEmptyMessageWhenIdle)
boolean type.
Default: false
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder transacted(boolean transacted)
boolean type.
Default: false
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder transacted(String transacted)
boolean type.
Default: false
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder useIterator(boolean useIterator)
boolean type.
Default: true
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder useIterator(String useIterator)
boolean type.
Default: true
Group: consumerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder backoffErrorThreshold(int backoffErrorThreshold)
int type.
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder backoffErrorThreshold(String backoffErrorThreshold)
int type.
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder backoffIdleThreshold(int backoffIdleThreshold)
int type.
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder backoffIdleThreshold(String backoffIdleThreshold)
int type.
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder backoffMultiplier(int backoffMultiplier)
int type.
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder backoffMultiplier(String backoffMultiplier)
int type.
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder delay(long delay)
long type.
Default: 500
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder delay(String delay)
long type.
Default: 500
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder greedy(boolean greedy)
boolean type.
Default: false
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder greedy(String greedy)
boolean type.
Default: false
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder initialDelay(long initialDelay)
long type.
Default: 1000
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder initialDelay(String initialDelay)
long type.
Default: 1000
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder repeatCount(long repeatCount)
long type.
Default: 0
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder repeatCount(String repeatCount)
long type.
Default: 0
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder runLoggingLevel(org.apache.camel.LoggingLevel runLoggingLevel)
org.apache.camel.LoggingLevel type.
Default: TRACE
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder runLoggingLevel(String runLoggingLevel)
org.apache.camel.LoggingLevel type.
Default: TRACE
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder scheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
java.util.concurrent.ScheduledExecutorService type.
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder scheduledExecutorService(String scheduledExecutorService)
java.util.concurrent.ScheduledExecutorService type.
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder scheduler(Object scheduler)
java.lang.Object type.
Default: none
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder scheduler(String scheduler)
java.lang.Object type.
Default: none
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder schedulerProperties(String key, Object value)
java.util.Map<java.lang.String,
java.lang.Object> type.
The option is multivalued, and you can use the
schedulerProperties(String, Object) method to add a value (call the
method multiple times to set more values).
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder schedulerProperties(Map values)
java.util.Map<java.lang.String,
java.lang.Object> type.
The option is multivalued, and you can use the
schedulerProperties(String, Object) method to add a value (call the
method multiple times to set more values).
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder startScheduler(boolean startScheduler)
boolean type.
Default: true
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder startScheduler(String startScheduler)
boolean type.
Default: true
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder timeUnit(TimeUnit timeUnit)
java.util.concurrent.TimeUnit type.
Default: MILLISECONDS
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder timeUnit(String timeUnit)
java.util.concurrent.TimeUnit type.
Default: MILLISECONDS
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder useFixedDelay(boolean useFixedDelay)
boolean type.
Default: true
Group: schedulerdefault SqlEndpointBuilderFactory.SqlEndpointConsumerBuilder useFixedDelay(String useFixedDelay)
boolean type.
Default: true
Group: schedulerApache Camel