public static interface JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder
extends org.apache.camel.builder.EndpointConsumerBuilder
| Modifier and Type | Method and Description |
|---|---|
default JpaEndpointBuilderFactory.AdvancedJpaEndpointConsumerBuilder |
advanced() |
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
backoffErrorThreshold(int backoffErrorThreshold)
The number of subsequent error polls (failed due some error) that
should happen before the backoffMultipler should kick-in.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
backoffErrorThreshold(String backoffErrorThreshold)
The number of subsequent error polls (failed due some error) that
should happen before the backoffMultipler should kick-in.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
backoffIdleThreshold(int backoffIdleThreshold)
The number of subsequent idle polls that should happen before the
backoffMultipler should kick-in.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
backoffIdleThreshold(String backoffIdleThreshold)
The number of subsequent idle polls that should happen before the
backoffMultipler should kick-in.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
backoffMultiplier(int backoffMultiplier)
To let the scheduled polling consumer backoff if there has been a
number of subsequent idles/errors in a row.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
backoffMultiplier(String backoffMultiplier)
To let the scheduled polling consumer backoff if there has been a
number of subsequent idles/errors in a row.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
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 JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
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 JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
consumeDelete(boolean consumeDelete)
If true, the entity is deleted after it is consumed; if false, the
entity is not deleted.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
consumeDelete(String consumeDelete)
If true, the entity is deleted after it is consumed; if false, the
entity is not deleted.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
consumeLockEntity(boolean consumeLockEntity)
Specifies whether or not to set an exclusive lock on each entity bean
while processing the results from polling.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
consumeLockEntity(String consumeLockEntity)
Specifies whether or not to set an exclusive lock on each entity bean
while processing the results from polling.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
delay(long delay)
Milliseconds before the next poll.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
delay(String delay)
Milliseconds before the next poll.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
deleteHandler(Object deleteHandler)
To use a custom DeleteHandler to delete the row after the consumer is
done processing the exchange.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
deleteHandler(String deleteHandler)
To use a custom DeleteHandler to delete the row after the consumer is
done processing the exchange.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
greedy(boolean greedy)
If greedy is enabled, then the ScheduledPollConsumer will run
immediately again, if the previous run polled 1 or more messages.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
greedy(String greedy)
If greedy is enabled, then the ScheduledPollConsumer will run
immediately again, if the previous run polled 1 or more messages.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
initialDelay(long initialDelay)
Milliseconds before the first poll starts.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
initialDelay(String initialDelay)
Milliseconds before the first poll starts.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
joinTransaction(boolean joinTransaction)
The camel-jpa component will join transaction by default.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
joinTransaction(String joinTransaction)
The camel-jpa component will join transaction by default.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
lockModeType(JpaEndpointBuilderFactory.LockModeType lockModeType)
To configure the lock mode on the consumer.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
lockModeType(String lockModeType)
To configure the lock mode on the consumer.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
maximumResults(int maximumResults)
Set the maximum number of results to retrieve on the Query.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
maximumResults(String maximumResults)
Set the maximum number of results to retrieve on the Query.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
maxMessagesPerPoll(int maxMessagesPerPoll)
An integer value to define the maximum number of messages to gather
per poll.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
maxMessagesPerPoll(String maxMessagesPerPoll)
An integer value to define the maximum number of messages to gather
per poll.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
namedQuery(String namedQuery)
To use a named query.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
nativeQuery(String nativeQuery)
To use a custom native query.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
persistenceUnit(String persistenceUnit)
The JPA persistence unit used by default.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
preDeleteHandler(Object preDeleteHandler)
To use a custom Pre-DeleteHandler to delete the row after the
consumer has read the entity.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
preDeleteHandler(String preDeleteHandler)
To use a custom Pre-DeleteHandler to delete the row after the
consumer has read the entity.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
query(String query)
To use a custom query.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
repeatCount(long repeatCount)
Specifies a maximum limit of number of fires.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
repeatCount(String repeatCount)
Specifies a maximum limit of number of fires.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
resultClass(Class<Object> resultClass)
Defines the type of the returned payload (we will call
entityManager.createNativeQuery(nativeQuery, resultClass) instead of
entityManager.createNativeQuery(nativeQuery)).
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
resultClass(String resultClass)
Defines the type of the returned payload (we will call
entityManager.createNativeQuery(nativeQuery, resultClass) instead of
entityManager.createNativeQuery(nativeQuery)).
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
runLoggingLevel(org.apache.camel.LoggingLevel runLoggingLevel)
The consumer logs a start/complete log line when it polls.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
runLoggingLevel(String runLoggingLevel)
The consumer logs a start/complete log line when it polls.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
scheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
Allows for configuring a custom/shared thread pool to use for the
consumer.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
scheduledExecutorService(String scheduledExecutorService)
Allows for configuring a custom/shared thread pool to use for the
consumer.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
scheduler(Object scheduler)
To use a cron scheduler from either camel-spring or camel-quartz
component.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
scheduler(String scheduler)
To use a cron scheduler from either camel-spring or camel-quartz
component.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
schedulerProperties(Map values)
To configure additional properties when using a custom scheduler or
any of the Quartz, Spring based scheduler.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
schedulerProperties(String key,
Object value)
To configure additional properties when using a custom scheduler or
any of the Quartz, Spring based scheduler.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
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 JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
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 JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
skipLockedEntity(boolean skipLockedEntity)
To configure whether to use NOWAIT on lock and silently skip the
entity.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
skipLockedEntity(String skipLockedEntity)
To configure whether to use NOWAIT on lock and silently skip the
entity.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
startScheduler(boolean startScheduler)
Whether the scheduler should be auto started.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
startScheduler(String startScheduler)
Whether the scheduler should be auto started.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
timeUnit(String timeUnit)
Time unit for initialDelay and delay options.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
timeUnit(TimeUnit timeUnit)
Time unit for initialDelay and delay options.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
transacted(boolean transacted)
Whether to run the consumer in transacted mode, by which all messages
will either commit or rollback, when the entire batch has been
processed.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
transacted(String transacted)
Whether to run the consumer in transacted mode, by which all messages
will either commit or rollback, when the entire batch has been
processed.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
useFixedDelay(boolean useFixedDelay)
Controls if fixed delay or fixed rate is used.
|
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder |
useFixedDelay(String useFixedDelay)
Controls if fixed delay or fixed rate is used.
|
default JpaEndpointBuilderFactory.AdvancedJpaEndpointConsumerBuilder advanced()
default JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder joinTransaction(boolean joinTransaction)
boolean type.
Default: true
Group: commondefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder joinTransaction(String joinTransaction)
boolean type.
Default: true
Group: commondefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder maximumResults(int maximumResults)
int type.
Default: -1
Group: commondefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder maximumResults(String maximumResults)
int type.
Default: -1
Group: commondefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder namedQuery(String namedQuery)
java.lang.String type.
Group: commondefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder nativeQuery(String nativeQuery)
java.lang.String type.
Group: commondefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder persistenceUnit(String persistenceUnit)
java.lang.String type.
Required: true
Default: camel
Group: commondefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder query(String query)
java.lang.String type.
Group: commondefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder resultClass(Class<Object> resultClass)
java.lang.Class<java.lang.Object>
type.
Group: commondefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder resultClass(String resultClass)
java.lang.Class<java.lang.Object> type.
Group: commondefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
boolean type.
Default: false
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler)
boolean type.
Default: false
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder consumeDelete(boolean consumeDelete)
boolean type.
Default: true
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder consumeDelete(String consumeDelete)
boolean type.
Default: true
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder consumeLockEntity(boolean consumeLockEntity)
boolean type.
Default: true
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder consumeLockEntity(String consumeLockEntity)
boolean type.
Default: true
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder deleteHandler(Object deleteHandler)
org.apache.camel.component.jpa.DeleteHandler<java.lang.Object> type.
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder deleteHandler(String deleteHandler)
org.apache.camel.component.jpa.DeleteHandler<java.lang.Object> type.
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder lockModeType(JpaEndpointBuilderFactory.LockModeType lockModeType)
javax.persistence.LockModeType type.
Default: PESSIMISTIC_WRITE
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder lockModeType(String lockModeType)
javax.persistence.LockModeType type.
Default: PESSIMISTIC_WRITE
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder maxMessagesPerPoll(int maxMessagesPerPoll)
int type.
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder maxMessagesPerPoll(String maxMessagesPerPoll)
int type.
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder preDeleteHandler(Object preDeleteHandler)
org.apache.camel.component.jpa.DeleteHandler<java.lang.Object> type.
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder preDeleteHandler(String preDeleteHandler)
org.apache.camel.component.jpa.DeleteHandler<java.lang.Object> type.
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder sendEmptyMessageWhenIdle(boolean sendEmptyMessageWhenIdle)
boolean type.
Default: false
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder sendEmptyMessageWhenIdle(String sendEmptyMessageWhenIdle)
boolean type.
Default: false
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder skipLockedEntity(boolean skipLockedEntity)
boolean type.
Default: false
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder skipLockedEntity(String skipLockedEntity)
boolean type.
Default: false
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder transacted(boolean transacted)
boolean type.
Default: false
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder transacted(String transacted)
boolean type.
Default: false
Group: consumerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder backoffErrorThreshold(int backoffErrorThreshold)
int type.
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder backoffErrorThreshold(String backoffErrorThreshold)
int type.
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder backoffIdleThreshold(int backoffIdleThreshold)
int type.
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder backoffIdleThreshold(String backoffIdleThreshold)
int type.
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder backoffMultiplier(int backoffMultiplier)
int type.
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder backoffMultiplier(String backoffMultiplier)
int type.
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder delay(long delay)
long type.
Default: 500
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder delay(String delay)
long type.
Default: 500
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder greedy(boolean greedy)
boolean type.
Default: false
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder greedy(String greedy)
boolean type.
Default: false
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder initialDelay(long initialDelay)
long type.
Default: 1000
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder initialDelay(String initialDelay)
long type.
Default: 1000
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder repeatCount(long repeatCount)
long type.
Default: 0
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder repeatCount(String repeatCount)
long type.
Default: 0
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder runLoggingLevel(org.apache.camel.LoggingLevel runLoggingLevel)
org.apache.camel.LoggingLevel type.
Default: TRACE
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder runLoggingLevel(String runLoggingLevel)
org.apache.camel.LoggingLevel type.
Default: TRACE
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder scheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
java.util.concurrent.ScheduledExecutorService type.
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder scheduledExecutorService(String scheduledExecutorService)
java.util.concurrent.ScheduledExecutorService type.
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder scheduler(Object scheduler)
java.lang.Object type.
Default: none
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder scheduler(String scheduler)
java.lang.Object type.
Default: none
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder 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 JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder 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 JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder startScheduler(boolean startScheduler)
boolean type.
Default: true
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder startScheduler(String startScheduler)
boolean type.
Default: true
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder timeUnit(TimeUnit timeUnit)
java.util.concurrent.TimeUnit type.
Default: MILLISECONDS
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder timeUnit(String timeUnit)
java.util.concurrent.TimeUnit type.
Default: MILLISECONDS
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder useFixedDelay(boolean useFixedDelay)
boolean type.
Default: true
Group: schedulerdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder useFixedDelay(String useFixedDelay)
boolean type.
Default: true
Group: schedulerApache Camel