Uses of Class
org.apache.camel.model.OnExceptionDefinition
Packages that use OnExceptionDefinition
-
Uses of OnExceptionDefinition in org.apache.camel.builder
Methods in org.apache.camel.builder that return OnExceptionDefinitionModifier and TypeMethodDescriptionRouteBuilder.onException(Class<? extends Throwable> exception) Exception clause for catching certain exceptions and handling them.final OnExceptionDefinitionRouteBuilder.onException(Class<? extends Throwable>... exceptions) Exception clause for catching certain exceptions and handling them. -
Uses of OnExceptionDefinition in org.apache.camel.model
Methods in org.apache.camel.model that return OnExceptionDefinitionModifier and TypeMethodDescriptionOnExceptionDefinition.asyncDelayedRedelivery()Allow asynchronous delayed redelivery.OnExceptionDefinition.backOffMultiplier(double backOffMultiplier) Sets the back off multiplierOnExceptionDefinition.backOffMultiplier(String backOffMultiplier) Sets the back off multiplier (supports property placeholders)OnExceptionDefinition.collisionAvoidanceFactor(double collisionAvoidanceFactor) Sets the collision avoidance factorOnExceptionDefinition.collisionAvoidanceFactor(String collisionAvoidanceFactor) Sets the collision avoidance factor (supports property placeholders)OnExceptionDefinition.collisionAvoidancePercent(double collisionAvoidancePercent) Sets the collision avoidance percentageOnExceptionDefinition.continued(boolean continued) Sets whether the exchange should handle and continue routing from the point of failure.OnExceptionDefinition.continued(org.apache.camel.Expression continued) Sets whether the exchange should be marked as handled or not.OnExceptionDefinition.continued(org.apache.camel.Predicate continued) Sets whether the exchange should be marked as handled or not.OnExceptionDefinition.delayPattern(String delayPattern) Sets the delay pattern with delay intervals.OnExceptionDefinition.handled(boolean handled) Sets whether the exchange should be marked as handled or not.OnExceptionDefinition.handled(org.apache.camel.Expression handled) Sets whether the exchange should be marked as handled or not.OnExceptionDefinition.handled(org.apache.camel.Predicate handled) Sets whether the exchange should be marked as handled or not.OnExceptionDefinition.logContinued(boolean logContinued) Sets whether to log errors even if its continuedOnExceptionDefinition.logContinued(String logContinued) Sets whether to log errors even if its continued (supports property placeholders)OnExceptionDefinition.logExhausted(boolean logExhausted) Sets whether to log exhausted exceptionsOnExceptionDefinition.logExhausted(String logExhausted) Sets whether to log exhausted exceptions (supports property placeholders)OnExceptionDefinition.logExhaustedMessageBody(boolean logExhaustedMessageBody) Sets whether to log exhausted message body with message history.OnExceptionDefinition.logExhaustedMessageBody(String logExhaustedMessageBody) Sets whether to log exhausted message body with message history.OnExceptionDefinition.logExhaustedMessageHistory(boolean logExhaustedMessageHistory) Sets whether to log exhausted exceptions with message historyOnExceptionDefinition.logExhaustedMessageHistory(String logExhaustedMessageHistory) Sets whether to log exhausted exceptions with message historyOnExceptionDefinition.logHandled(boolean logHandled) Sets whether to log errors even if its handledOnExceptionDefinition.logHandled(String logHandled) Sets whether to log errors even if its handled (supports property placeholders)OnExceptionDefinition.logNewException(boolean logNewException) Sets whether new exceptions should be logged or not (supports property placeholders).OnExceptionDefinition.logNewException(String logNewException) Sets whether new exceptions should be logged or not (supports property placeholders).OnExceptionDefinition.logRetryAttempted(boolean logRetryAttempted) Sets whether to log retry attemptsOnExceptionDefinition.logRetryAttempted(String logRetryAttempted) Sets whether to log retry attempts (supports property placeholders)OnExceptionDefinition.logRetryStackTrace(boolean logRetryStackTrace) Sets whether to log stacktrace for failed redelivery attemptsOnExceptionDefinition.logRetryStackTrace(String logRetryStackTrace) Sets whether to log stacktrace for failed redelivery attempts (supports property placeholders)OnExceptionDefinition.logStackTrace(boolean logStackTrace) Sets whether to log stacktrace for failed messages.OnExceptionDefinition.logStackTrace(String logStackTrace) Sets whether to log stacktrace for failed messages (supports property placeholders)OnExceptionDefinition.maximumRedeliveries(int maximumRedeliveries) Sets the maximum redeliveries 5 = default value 0 = no redeliveries -1 = redeliver foreverOnExceptionDefinition.maximumRedeliveries(String maximumRedeliveries) Sets the maximum redeliveries (supports property placeholders) 5 = default value 0 = no redeliveries -1 = redeliver foreverOnExceptionDefinition.maximumRedeliveryDelay(long maximumRedeliveryDelay) Sets the maximum delay between redeliveryOnExceptionDefinition.maximumRedeliveryDelay(String maximumRedeliveryDelay) Sets the maximum delay between redelivery (supports property placeholders)OnExceptionDefinition.onException(Class<? extends Throwable> exceptionType) ProcessorDefinition.onException(Class<? extends Throwable> exceptionType) Exception clause for catching certain exceptions and handling them.final OnExceptionDefinitionProcessorDefinition.onException(Class<? extends Throwable>... exceptions) Exception clause for catching certain exceptions and handling them.ProcessorDefinition.onException(Class<? extends Throwable> exceptionType1, Class<? extends Throwable> exceptionType2) Exception clause for catching certain exceptions and handling them.ProcessorDefinition.onException(Class<? extends Throwable> exceptionType1, Class<? extends Throwable> exceptionType2, Class<? extends Throwable> exceptionType3) Exception clause for catching certain exceptions and handling them.RouteConfigurationDefinition.onException(Class<? extends Throwable> exceptionType) Exception clause for catching certain exceptions and handling them.final OnExceptionDefinitionRouteConfigurationDefinition.onException(Class<? extends Throwable>... exceptions) Exception clause for catching certain exceptions and handling them.RoutesDefinition.onException(Class<? extends Throwable> exception) Adds an on exceptionOnExceptionDefinition.onExceptionOccurred(org.apache.camel.Processor processor) Sets a processor that should be processed just after an exception occurred.OnExceptionDefinition.onExceptionOccurredRef(String ref) Sets a reference to a processor that should be processed just after an exception occurred.OnExceptionDefinition.onRedelivery(org.apache.camel.Processor processor) Sets a processor that should be processed before a redelivery attempt.OnExceptionDefinition.onRedeliveryRef(String ref) Sets a reference to a processor that should be processed before a redelivery attempt.OnExceptionDefinition.onWhen(org.apache.camel.Predicate predicate) Sets an additional predicate that should be true before the onException is triggered.OnExceptionDefinition.redeliveryDelay(long delay) Sets the initial redelivery delayOnExceptionDefinition.redeliveryDelay(String delay) Sets the initial redelivery delay (supports property placeholders)OnExceptionDefinition.redeliveryPolicyRef(String redeliveryPolicyRef) Sets a reference to a redelivery policy to lookup in theRegistryto be used.OnExceptionDefinition.retriesExhaustedLogLevel(org.apache.camel.LoggingLevel retriesExhaustedLogLevel) Sets the logging level to use when retries have been exhaustedOnExceptionDefinition.retryAttemptedLogLevel(org.apache.camel.LoggingLevel retryAttemptedLogLevel) Sets the logging level to use for logging retry attemptsOnExceptionDefinition.retryWhile(org.apache.camel.Predicate retryWhile) Sets the retry while predicate.OnExceptionDefinition.useCollisionAvoidance()Turn on collision avoidance.OnExceptionDefinition.useExponentialBackOff()Turn on exponential back offOnExceptionDefinition.useOriginalBody()Will use the original inputMessagebody (original body only) when anExchangeis moved to the dead letter queue.OnExceptionDefinition.useOriginalMessage()Will use the original inputMessage(original body and headers) when anExchangeis moved to the dead letter queue.Methods in org.apache.camel.model that return types with arguments of type OnExceptionDefinitionModifier and TypeMethodDescriptionRouteConfigurationDefinition.getOnExceptions()RoutesDefinition.getOnExceptions()Method parameters in org.apache.camel.model with type arguments of type OnExceptionDefinitionModifier and TypeMethodDescriptionstatic voidRouteDefinitionHelper.prepareRoute(org.apache.camel.CamelContext context, RouteDefinition route, ErrorHandlerDefinition errorHandler, 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 onCompletionsvoidRouteConfigurationDefinition.setOnExceptions(List<OnExceptionDefinition> onExceptions) voidRoutesDefinition.setOnExceptions(List<OnExceptionDefinition> onExceptions)