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)
joinTransaction - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder joinTransaction(String joinTransaction)
joinTransaction - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder maximumResults(int maximumResults)
maximumResults - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder maximumResults(String maximumResults)
maximumResults - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder namedQuery(String namedQuery)
namedQuery - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder nativeQuery(String nativeQuery)
nativeQuery - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder persistenceUnit(String persistenceUnit)
persistenceUnit - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder query(String query)
query - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder resultClass(Class<Object> resultClass)
resultClass - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder resultClass(String resultClass)
resultClass - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
bridgeErrorHandler - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler)
bridgeErrorHandler - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder consumeDelete(boolean consumeDelete)
consumeDelete - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder consumeDelete(String consumeDelete)
consumeDelete - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder consumeLockEntity(boolean consumeLockEntity)
consumeLockEntity - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder consumeLockEntity(String consumeLockEntity)
consumeLockEntity - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder deleteHandler(Object deleteHandler)
deleteHandler - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder deleteHandler(String deleteHandler)
deleteHandler - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder lockModeType(JpaEndpointBuilderFactory.LockModeType lockModeType)
lockModeType - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder lockModeType(String lockModeType)
lockModeType - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder maxMessagesPerPoll(int maxMessagesPerPoll)
maxMessagesPerPoll - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder maxMessagesPerPoll(String maxMessagesPerPoll)
maxMessagesPerPoll - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder preDeleteHandler(Object preDeleteHandler)
preDeleteHandler - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder preDeleteHandler(String preDeleteHandler)
preDeleteHandler - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder sendEmptyMessageWhenIdle(boolean sendEmptyMessageWhenIdle)
sendEmptyMessageWhenIdle - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder sendEmptyMessageWhenIdle(String sendEmptyMessageWhenIdle)
sendEmptyMessageWhenIdle - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder skipLockedEntity(boolean skipLockedEntity)
skipLockedEntity - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder skipLockedEntity(String skipLockedEntity)
skipLockedEntity - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder transacted(boolean transacted)
transacted - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder transacted(String transacted)
transacted - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder backoffErrorThreshold(int backoffErrorThreshold)
backoffErrorThreshold - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder backoffErrorThreshold(String backoffErrorThreshold)
backoffErrorThreshold - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder backoffIdleThreshold(int backoffIdleThreshold)
backoffIdleThreshold - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder backoffIdleThreshold(String backoffIdleThreshold)
backoffIdleThreshold - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder backoffMultiplier(int backoffMultiplier)
backoffMultiplier - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder backoffMultiplier(String backoffMultiplier)
backoffMultiplier - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder delay(long delay)
delay - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder delay(String delay)
delay - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder greedy(boolean greedy)
greedy - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder greedy(String greedy)
greedy - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder initialDelay(long initialDelay)
initialDelay - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder initialDelay(String initialDelay)
initialDelay - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder repeatCount(long repeatCount)
repeatCount - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder repeatCount(String repeatCount)
repeatCount - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder runLoggingLevel(org.apache.camel.LoggingLevel runLoggingLevel)
runLoggingLevel - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder runLoggingLevel(String runLoggingLevel)
runLoggingLevel - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder scheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
scheduledExecutorService - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder scheduledExecutorService(String scheduledExecutorService)
scheduledExecutorService - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder scheduler(Object scheduler)
scheduler - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder scheduler(String scheduler)
scheduler - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder schedulerProperties(String key, Object value)
key - the option keyvalue - the option valuedefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder schedulerProperties(Map values)
values - the valuesdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder startScheduler(boolean startScheduler)
startScheduler - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder startScheduler(String startScheduler)
startScheduler - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder timeUnit(TimeUnit timeUnit)
timeUnit - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder timeUnit(String timeUnit)
timeUnit - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder useFixedDelay(boolean useFixedDelay)
useFixedDelay - the value to setdefault JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder useFixedDelay(String useFixedDelay)
useFixedDelay - the value to setApache Camel