Package | Description |
---|---|
org.apache.camel.builder | |
org.apache.camel.model |
The JAXB POJOs for the
XML Configuration
of the routing rules.
|
org.apache.camel.processor |
A collection of Processor
implementations which are used to implement the
Enterprise Integration Patterns
|
org.apache.camel.processor.exceptionpolicy |
Exception policy startegies for Dead Letter Channel pattern.
|
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 |
---|---|
List<OnExceptionDefinition> |
ErrorHandlerBuilderSupport.getErrorHandlers(RouteContext routeContext) |
List<OnExceptionDefinition> |
ErrorHandlerBuilder.getErrorHandlers(RouteContext routeContext)
Gets the error handlers
|
Modifier and Type | Method and Description |
---|---|
void |
ErrorHandlerBuilderSupport.addErrorHandlers(RouteContext routeContext,
OnExceptionDefinition exception) |
void |
ErrorHandlerBuilderRef.addErrorHandlers(RouteContext routeContext,
OnExceptionDefinition exception) |
void |
ErrorHandlerBuilder.addErrorHandlers(RouteContext routeContext,
OnExceptionDefinition exception)
Adds error handler for the given exception type
|
Modifier and Type | Method and Description |
---|---|
void |
ErrorHandlerBuilderSupport.setErrorHandlers(RouteContext routeContext,
List<OnExceptionDefinition> exceptions) |
void |
ErrorHandlerBuilder.setErrorHandlers(RouteContext routeContext,
List<OnExceptionDefinition> exceptions)
Adds the error handlers for the given list of exception types
|
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(Expression continued)
Sets whether the exchange should be marked as handled or not.
|
OnExceptionDefinition |
OnExceptionDefinition.continued(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(Expression handled)
Sets whether the exchange should be marked as handled or not.
|
OnExceptionDefinition |
OnExceptionDefinition.handled(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 |
ProcessorDefinition.onException(Class<? extends Throwable>... exceptions)
Exception clause
for catching certain exceptions and handling them.
|
OnExceptionDefinition |
RoutesDefinition.onException(Class<? extends Throwable> exception)
Adds an on exception
|
OnExceptionDefinition |
ProcessorDefinition.onException(Class<? extends Throwable> exceptionType)
Exception clause
for catching certain exceptions and handling them.
|
OnExceptionDefinition |
OnExceptionDefinition.onException(Class<? extends Throwable> exceptionType) |
OnExceptionDefinition |
OnExceptionDefinition.onExceptionOccurred(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(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(Predicate predicate)
Sets an additional predicate that should be true before the onException is triggered.
|
OnExceptionDefinition |
OnExceptionDefinition.redeliverDelay(long delay)
Deprecated.
will be removed in the near future. Instead use
redeliveryDelay(String) |
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.redeliveryPolicy(RedeliveryPolicy redeliveryPolicy)
Set the
RedeliveryPolicy to be used. |
OnExceptionDefinition |
OnExceptionDefinition.redeliveryPolicyRef(String redeliveryPolicyRef)
Sets a reference to a
RedeliveryPolicy to lookup in the Registry to be used. |
OnExceptionDefinition |
OnExceptionDefinition.retriesExhaustedLogLevel(LoggingLevel retriesExhaustedLogLevel)
Sets the logging level to use when retries has exhausted
|
OnExceptionDefinition |
OnExceptionDefinition.retryAttemptedLogLevel(LoggingLevel retryAttemptedLogLevel)
Sets the logging level to use for logging retry attempts
|
OnExceptionDefinition |
OnExceptionDefinition.retryWhile(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()
Deprecated.
this method will be removed in Camel 3.0, please use
useOriginalMessage() |
OnExceptionDefinition |
OnExceptionDefinition.useOriginalMessage()
Will use the original input message when an
Exchange is moved to the dead letter queue. |
Modifier and Type | Method and Description |
---|---|
List<OnExceptionDefinition> |
RoutesDefinition.getOnExceptions() |
Modifier and Type | Method and Description |
---|---|
static void |
RouteDefinitionHelper.prepareRoute(ModelCamelContext 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 |
RoutesDefinition.setOnExceptions(List<OnExceptionDefinition> onExceptions) |
Modifier and Type | Field and Description |
---|---|
protected Map<ExceptionPolicyKey,OnExceptionDefinition> |
ErrorHandlerSupport.exceptionPolicies |
Modifier and Type | Method and Description |
---|---|
protected OnExceptionDefinition |
ErrorHandlerSupport.getExceptionPolicy(Exchange exchange,
Throwable exception)
Attempts to find the best suited
OnExceptionDefinition to be used for handling the given thrown exception. |
Modifier and Type | Method and Description |
---|---|
void |
ErrorHandlerSupport.addExceptionPolicy(RouteContext routeContext,
OnExceptionDefinition exceptionType) |
Modifier and Type | Method and Description |
---|---|
OnExceptionDefinition |
ExceptionPolicyStrategy.getExceptionPolicy(Map<ExceptionPolicyKey,OnExceptionDefinition> exceptionPolicies,
Exchange exchange,
Throwable exception)
Resolves the
OnExceptionDefinition that should handle the thrown exception. |
OnExceptionDefinition |
DefaultExceptionPolicyStrategy.getExceptionPolicy(Map<ExceptionPolicyKey,OnExceptionDefinition> exceptionPolicies,
Exchange exchange,
Throwable exception) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
DefaultExceptionPolicyStrategy.filter(OnExceptionDefinition type,
Class<?> exceptionClass,
Throwable exception)
Strategy to filter the given type exception class with the thrown exception
|
protected boolean |
DefaultExceptionPolicyStrategy.matchesWhen(OnExceptionDefinition definition,
Exchange exchange)
Strategy method for matching the exception type with the current exchange.
|
Modifier and Type | Method and Description |
---|---|
OnExceptionDefinition |
ExceptionPolicyStrategy.getExceptionPolicy(Map<ExceptionPolicyKey,OnExceptionDefinition> exceptionPolicies,
Exchange exchange,
Throwable exception)
Resolves the
OnExceptionDefinition that should handle the thrown exception. |
OnExceptionDefinition |
DefaultExceptionPolicyStrategy.getExceptionPolicy(Map<ExceptionPolicyKey,OnExceptionDefinition> exceptionPolicies,
Exchange exchange,
Throwable exception) |
Apache Camel