Package | Description |
---|---|
org.apache.camel.builder | |
org.apache.camel.model |
The JAXB POJOs for the XML Configuration of the routing
rules.
|
Modifier and Type | Method and Description |
---|---|
OnExceptionDefinition |
RouteBuilder.onException(Class<? extends Throwable>... exceptions)
Exception clause for catching certain exceptions and
handling them.
|
OnExceptionDefinition |
RouteBuilder.onException(Class<? extends Throwable> exception)
Exception clause for catching certain exceptions and
handling them.
|
Modifier and Type | Method and Description |
---|---|
OnExceptionDefinition |
OnExceptionDefinition.asyncDelayedRedelivery()
Allow synchronous delayed redelivery.
|
OnExceptionDefinition |
OnExceptionDefinition.backOffMultiplier(double backOffMultiplier)
Sets the back off multiplier
|
OnExceptionDefinition |
OnExceptionDefinition.backOffMultiplier(String backOffMultiplier)
Sets the back off multiplier (supports property placeholders)
|
OnExceptionDefinition |
OnExceptionDefinition.collisionAvoidanceFactor(double collisionAvoidanceFactor)
Sets the collision avoidance factor
|
OnExceptionDefinition |
OnExceptionDefinition.collisionAvoidanceFactor(String collisionAvoidanceFactor)
Sets the collision avoidance factor (supports property placeholders)
|
OnExceptionDefinition |
OnExceptionDefinition.collisionAvoidancePercent(double collisionAvoidancePercent)
Sets the collision avoidance percentage
|
OnExceptionDefinition |
OnExceptionDefinition.continued(boolean continued)
Sets whether the exchange should handle and continue routing from the point of failure.
|
OnExceptionDefinition |
OnExceptionDefinition.continued(org.apache.camel.Expression continued)
Sets whether the exchange should be marked as handled or not.
|
OnExceptionDefinition |
OnExceptionDefinition.continued(org.apache.camel.Predicate continued)
Sets whether the exchange should be marked as handled or not.
|
OnExceptionDefinition |
OnExceptionDefinition.delayPattern(String delayPattern)
Sets the delay pattern with delay intervals.
|
OnExceptionDefinition |
OnExceptionDefinition.handled(boolean handled)
Sets whether the exchange should be marked as handled or not.
|
OnExceptionDefinition |
OnExceptionDefinition.handled(org.apache.camel.Expression handled)
Sets whether the exchange should be marked as handled or not.
|
OnExceptionDefinition |
OnExceptionDefinition.handled(org.apache.camel.Predicate handled)
Sets whether the exchange should be marked as handled or not.
|
OnExceptionDefinition |
OnExceptionDefinition.logContinued(boolean logContinued)
Sets whether to log errors even if its continued
|
OnExceptionDefinition |
OnExceptionDefinition.logContinued(String logContinued)
Sets whether to log errors even if its continued (supports property placeholders)
|
OnExceptionDefinition |
OnExceptionDefinition.logExhausted(boolean logExhausted)
Sets whether to log exhausted exceptions
|
OnExceptionDefinition |
OnExceptionDefinition.logExhausted(String logExhausted)
Sets whether to log exhausted exceptions (supports property placeholders)
|
OnExceptionDefinition |
OnExceptionDefinition.logExhaustedMessageBody(boolean logExhaustedMessageBody)
Sets whether to log exhausted message body with message history.
|
OnExceptionDefinition |
OnExceptionDefinition.logExhaustedMessageBody(String logExhaustedMessageBody)
Sets whether to log exhausted message body with message history.
|
OnExceptionDefinition |
OnExceptionDefinition.logExhaustedMessageHistory(boolean logExhaustedMessageHistory)
Sets whether to log exhausted exceptions with message history
|
OnExceptionDefinition |
OnExceptionDefinition.logExhaustedMessageHistory(String logExhaustedMessageHistory)
Sets whether to log exhausted exceptions with message history
|
OnExceptionDefinition |
OnExceptionDefinition.logHandled(boolean logHandled)
Sets whether to log errors even if its handled
|
OnExceptionDefinition |
OnExceptionDefinition.logHandled(String logHandled)
Sets whether to log errors even if its handled (supports property placeholders)
|
OnExceptionDefinition |
OnExceptionDefinition.logNewException(boolean logNewException)
Sets whether new exceptions should be logged or not (supports property placeholders).
|
OnExceptionDefinition |
OnExceptionDefinition.logNewException(String logNewException)
Sets whether new exceptions should be logged or not (supports property placeholders).
|
OnExceptionDefinition |
OnExceptionDefinition.logRetryAttempted(boolean logRetryAttempted)
Sets whether to log retry attempts
|
OnExceptionDefinition |
OnExceptionDefinition.logRetryAttempted(String logRetryAttempted)
Sets whether to log retry attempts (supports property placeholders)
|
OnExceptionDefinition |
OnExceptionDefinition.logRetryStackTrace(boolean logRetryStackTrace)
Sets whether to log stacktrace for failed redelivery attempts
|
OnExceptionDefinition |
OnExceptionDefinition.logRetryStackTrace(String logRetryStackTrace)
Sets whether to log stacktrace for failed redelivery attempts (supports property placeholders)
|
OnExceptionDefinition |
OnExceptionDefinition.logStackTrace(boolean logStackTrace)
Sets whether to log stacktrace for failed messages.
|
OnExceptionDefinition |
OnExceptionDefinition.logStackTrace(String logStackTrace)
Sets whether to log stacktrace for failed messages (supports property placeholders)
|
OnExceptionDefinition |
OnExceptionDefinition.maximumRedeliveries(int maximumRedeliveries)
Sets the maximum redeliveries
5 = default value
0 = no redeliveries
-1 = redeliver forever
|
OnExceptionDefinition |
OnExceptionDefinition.maximumRedeliveries(String maximumRedeliveries)
Sets the maximum redeliveries (supports property placeholders)
5 = default value
0 = no redeliveries
-1 = redeliver forever
|
OnExceptionDefinition |
OnExceptionDefinition.maximumRedeliveryDelay(long maximumRedeliveryDelay)
Sets the maximum delay between redelivery
|
OnExceptionDefinition |
OnExceptionDefinition.maximumRedeliveryDelay(String maximumRedeliveryDelay)
Sets the maximum delay between redelivery (supports property placeholders)
|
OnExceptionDefinition |
RouteConfigurationDefinition.onException(Class<? extends Throwable>... exceptions)
Exception clause for catching certain exceptions and
handling them.
|
OnExceptionDefinition |
ProcessorDefinition.onException(Class<? extends Throwable>... exceptions)
Exception clause for catching certain exceptions and
handling them.
|
OnExceptionDefinition |
OnExceptionDefinition.onException(Class<? extends Throwable> exceptionType) |
OnExceptionDefinition |
RouteConfigurationDefinition.onException(Class<? extends Throwable> exceptionType)
Exception clause for catching certain exceptions and
handling them.
|
OnExceptionDefinition |
ProcessorDefinition.onException(Class<? extends Throwable> exceptionType)
Exception clause for catching certain exceptions and
handling them.
|
OnExceptionDefinition |
RoutesDefinition.onException(Class<? extends Throwable> exception)
Adds an on exception
|
OnExceptionDefinition |
OnExceptionDefinition.onExceptionOccurred(org.apache.camel.Processor processor)
Sets a processor that should be processed just after an exception occurred.
|
OnExceptionDefinition |
OnExceptionDefinition.onExceptionOccurredRef(String ref)
Sets a reference to a processor that should be processed just after an exception occurred.
|
OnExceptionDefinition |
OnExceptionDefinition.onRedelivery(org.apache.camel.Processor processor)
Sets a processor that should be processed before a redelivery attempt.
|
OnExceptionDefinition |
OnExceptionDefinition.onRedeliveryRef(String ref)
Sets a reference to a processor that should be processed before a redelivery attempt.
|
OnExceptionDefinition |
OnExceptionDefinition.onWhen(org.apache.camel.Predicate predicate)
Sets an additional predicate that should be true before the onException is triggered.
|
OnExceptionDefinition |
OnExceptionDefinition.redeliveryDelay(long delay)
Sets the initial redelivery delay
|
OnExceptionDefinition |
OnExceptionDefinition.redeliveryDelay(String delay)
Sets the initial redelivery delay (supports property placeholders)
|
OnExceptionDefinition |
OnExceptionDefinition.redeliveryPolicyRef(String redeliveryPolicyRef)
Sets a reference to a
RedeliveryPolicy to lookup in the Registry to be used. |
OnExceptionDefinition |
OnExceptionDefinition.retriesExhaustedLogLevel(org.apache.camel.LoggingLevel retriesExhaustedLogLevel)
Sets the logging level to use when retries has exhausted
|
OnExceptionDefinition |
OnExceptionDefinition.retryAttemptedLogLevel(org.apache.camel.LoggingLevel retryAttemptedLogLevel)
Sets the logging level to use for logging retry attempts
|
OnExceptionDefinition |
OnExceptionDefinition.retryWhile(org.apache.camel.Predicate retryWhile)
Sets the retry while predicate.
|
OnExceptionDefinition |
OnExceptionDefinition.useCollisionAvoidance()
Turn on collision avoidance.
|
OnExceptionDefinition |
OnExceptionDefinition.useExponentialBackOff()
Turn on exponential back off
|
OnExceptionDefinition |
OnExceptionDefinition.useOriginalBody()
Will use the original input
Message body (original body only) when an
Exchange is moved to the dead letter queue. |
OnExceptionDefinition |
OnExceptionDefinition.useOriginalMessage()
Will use the original input
Message (original body and headers) when an
Exchange is moved to the dead letter queue. |
Modifier and Type | Method and Description |
---|---|
List<OnExceptionDefinition> |
RouteConfigurationDefinition.getOnExceptions() |
List<OnExceptionDefinition> |
RoutesDefinition.getOnExceptions() |
Modifier and Type | Method and Description |
---|---|
static void |
RouteDefinitionHelper.prepareRoute(org.apache.camel.CamelContext context,
RouteDefinition route,
List<OnExceptionDefinition> onExceptions,
List<InterceptDefinition> intercepts,
List<InterceptFromDefinition> interceptFromDefinitions,
List<InterceptSendToEndpointDefinition> interceptSendToEndpointDefinitions,
List<OnCompletionDefinition> onCompletions)
Prepares the route which supports context scoped features such as onException, interceptors and onCompletions
This method does not mark the route as prepared afterwards.
|
void |
RouteConfigurationDefinition.setOnExceptions(List<OnExceptionDefinition> onExceptions) |
void |
RoutesDefinition.setOnExceptions(List<OnExceptionDefinition> onExceptions) |
Apache Camel