Package org.apache.camel.builder
Class DefaultErrorHandlerBuilder
- java.lang.Object
-
- org.apache.camel.builder.ErrorHandlerBuilderSupport
-
- org.apache.camel.builder.DefaultErrorHandlerBuilder
-
- All Implemented Interfaces:
ErrorHandlerBuilder
,org.apache.camel.ErrorHandlerFactory
,DefaultErrorHandlerProperties
- Direct Known Subclasses:
DeadLetterChannelBuilder
public class DefaultErrorHandlerBuilder extends ErrorHandlerBuilderSupport implements DefaultErrorHandlerProperties
The default error handler builder.
-
-
Constructor Summary
Constructors Constructor Description DefaultErrorHandlerBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultErrorHandlerBuilder
allowRedeliveryWhileStopping(boolean allowRedeliveryWhileStopping)
Controls whether to allow redelivery while stopping/shutting down a route that uses error handling.DefaultErrorHandlerBuilder
asyncDelayedRedelivery()
Will allow asynchronous delayed redeliveries.DefaultErrorHandlerBuilder
backOffMultiplier(double backOffMultiplier)
ErrorHandlerBuilder
cloneBuilder()
Clones this builder so eachRouteBuilder
has its private builder to use, to avoid changes from oneRouteBuilder
to influence the others.protected void
cloneBuilder(DefaultErrorHandlerBuilder other)
DefaultErrorHandlerBuilder
collisionAvoidancePercent(double collisionAvoidancePercent)
protected org.apache.camel.spi.CamelLogger
createLogger()
protected org.apache.camel.processor.errorhandler.RedeliveryPolicy
createRedeliveryPolicy()
DefaultErrorHandlerBuilder
deadLetterHandleNewException(boolean handleNewException)
Whether the dead letter channel should handle (and ignore) any new exception that may been thrown during sending the message to the dead letter endpoint.DefaultErrorHandlerBuilder
delayPattern(String delayPattern)
DefaultErrorHandlerBuilder
disableRedelivery()
DefaultErrorHandlerBuilder
exchangeFormatterRef(String exchangeFormatterRef)
DefaultErrorHandlerBuilder
executorService(ScheduledExecutorService executorService)
Sets the thread pool to be used for redelivery.DefaultErrorHandlerBuilder
executorServiceRef(String ref)
Sets a reference to a thread pool to be used for redelivery.String
getDeadLetterUri()
org.apache.camel.processor.errorhandler.RedeliveryPolicy
getDefaultRedeliveryPolicy()
ScheduledExecutorService
getExecutorService()
String
getExecutorServiceRef()
org.apache.camel.spi.CamelLogger
getLogger()
org.apache.camel.Processor
getOnExceptionOccurred()
String
getOnExceptionOccurredRef()
org.apache.camel.Processor
getOnPrepareFailure()
String
getOnPrepareFailureRef()
org.apache.camel.Processor
getOnRedelivery()
String
getOnRedeliveryRef()
org.apache.camel.processor.errorhandler.RedeliveryPolicy
getRedeliveryPolicy()
org.apache.camel.Predicate
getRetryWhile()
org.apache.camel.Predicate
getRetryWhilePolicy(org.apache.camel.CamelContext context)
String
getRetryWhileRef()
boolean
hasLogger()
boolean
hasRedeliveryPolicy()
boolean
isAsyncDelayedRedelivery()
boolean
isDeadLetterHandleNewException()
boolean
isUseOriginalBody()
boolean
isUseOriginalMessage()
DefaultErrorHandlerBuilder
log(Class<?> log)
Sets the log used for caught exceptionsDefaultErrorHandlerBuilder
log(String log)
Sets the log used for caught exceptionsDefaultErrorHandlerBuilder
log(org.slf4j.Logger log)
Sets the log used for caught exceptionsDefaultErrorHandlerBuilder
logExhausted(boolean logExhausted)
DefaultErrorHandlerBuilder
logExhaustedMessageBody(boolean logExhaustedMessageBody)
DefaultErrorHandlerBuilder
logExhaustedMessageHistory(boolean logExhaustedMessageHistory)
DefaultErrorHandlerBuilder
logger(org.apache.camel.spi.CamelLogger logger)
Sets the logger used for caught exceptionsDefaultErrorHandlerBuilder
loggingLevel(org.apache.camel.LoggingLevel level)
Sets the logging level of exceptions caughtDefaultErrorHandlerBuilder
logHandled(boolean logHandled)
DefaultErrorHandlerBuilder
logNewException(boolean logNewException)
DefaultErrorHandlerBuilder
logRetryAttempted(boolean logRetryAttempted)
DefaultErrorHandlerBuilder
logRetryStackTrace(boolean logRetryStackTrace)
DefaultErrorHandlerBuilder
logStackTrace(boolean logStackTrace)
DefaultErrorHandlerBuilder
maximumRedeliveries(int maximumRedeliveries)
DefaultErrorHandlerBuilder
maximumRedeliveryDelay(long maximumRedeliveryDelay)
DefaultErrorHandlerBuilder
onExceptionOccurred(org.apache.camel.Processor processor)
Sets a customProcessor
to process theExchange
just after an exception was thrown.DefaultErrorHandlerBuilder
onExceptionOccurredRef(String onExceptionOccurredRef)
Sets a reference for the processor to use just after an exception was thrown.DefaultErrorHandlerBuilder
onPrepareFailure(org.apache.camel.Processor processor)
Sets a customProcessor
to prepare theExchange
before handled by the failure processor / dead letter channel.DefaultErrorHandlerBuilder
onPrepareFailureRef(String onPrepareFailureRef)
Sets a reference for the processor to use before handled by the failure processor.DefaultErrorHandlerBuilder
onRedelivery(org.apache.camel.Processor processor)
Sets a processor that should be processed before a redelivery attempt.DefaultErrorHandlerBuilder
onRedeliveryRef(String onRedeliveryRef)
Sets a reference for the processor to use before a redelivery attempt.DefaultErrorHandlerBuilder
redeliveryDelay(long delay)
DefaultErrorHandlerBuilder
retriesExhaustedLogLevel(org.apache.camel.LoggingLevel retriesExhaustedLogLevel)
DefaultErrorHandlerBuilder
retryAttemptedLogInterval(int retryAttemptedLogInterval)
DefaultErrorHandlerBuilder
retryAttemptedLogLevel(org.apache.camel.LoggingLevel retryAttemptedLogLevel)
DefaultErrorHandlerBuilder
retryWhile(org.apache.camel.Expression retryWhile)
Sets the retry while expression.DefaultErrorHandlerBuilder
retryWhileRef(String retryWhileRef)
void
setAsyncDelayedRedelivery(boolean asyncDelayedRedelivery)
void
setDeadLetterHandleNewException(boolean deadLetterHandleNewException)
void
setDeadLetterUri(String deadLetterUri)
void
setExecutorService(ScheduledExecutorService executorService)
void
setExecutorServiceRef(String executorServiceRef)
void
setLogger(org.apache.camel.spi.CamelLogger logger)
void
setOnExceptionOccurred(org.apache.camel.Processor onExceptionOccurred)
void
setOnExceptionOccurredRef(String onExceptionOccurredRef)
void
setOnPrepareFailure(org.apache.camel.Processor onPrepareFailure)
void
setOnPrepareFailureRef(String onPrepareFailureRef)
void
setOnRedelivery(org.apache.camel.Processor onRedelivery)
void
setOnRedeliveryRef(String onRedeliveryRef)
void
setRedeliveryPolicy(org.apache.camel.processor.errorhandler.RedeliveryPolicy redeliveryPolicy)
Sets the redelivery policyvoid
setRetryWhile(org.apache.camel.Predicate retryWhile)
void
setRetryWhileRef(String retryWhileRef)
void
setUseOriginalBody(boolean useOriginalBody)
void
setUseOriginalMessage(boolean useOriginalMessage)
boolean
supportTransacted()
Whether this error handler supports transacted exchanges.String
toString()
DefaultErrorHandlerBuilder
useCollisionAvoidance()
DefaultErrorHandlerBuilder
useExponentialBackOff()
DefaultErrorHandlerBuilder
useOriginalBody()
Will use the original inputMessage
body (original body only) when anExchange
is moved to the dead letter queue.DefaultErrorHandlerBuilder
useOriginalMessage()
Will use the original inputMessage
(original body and headers) when anExchange
is moved to the dead letter queue.
-
-
-
Method Detail
-
supportTransacted
public boolean supportTransacted()
Description copied from interface:ErrorHandlerBuilder
Whether this error handler supports transacted exchanges.- Specified by:
supportTransacted
in interfaceErrorHandlerBuilder
- Overrides:
supportTransacted
in classErrorHandlerBuilderSupport
-
cloneBuilder
public ErrorHandlerBuilder cloneBuilder()
Description copied from interface:ErrorHandlerBuilder
Clones this builder so eachRouteBuilder
has its private builder to use, to avoid changes from oneRouteBuilder
to influence the others. This is needed by the current Camel 2.x architecture.- Specified by:
cloneBuilder
in interfaceErrorHandlerBuilder
- Returns:
- a clone of this
ErrorHandlerBuilder
-
cloneBuilder
protected void cloneBuilder(DefaultErrorHandlerBuilder other)
-
backOffMultiplier
public DefaultErrorHandlerBuilder backOffMultiplier(double backOffMultiplier)
-
collisionAvoidancePercent
public DefaultErrorHandlerBuilder collisionAvoidancePercent(double collisionAvoidancePercent)
-
redeliveryDelay
public DefaultErrorHandlerBuilder redeliveryDelay(long delay)
-
delayPattern
public DefaultErrorHandlerBuilder delayPattern(String delayPattern)
-
maximumRedeliveries
public DefaultErrorHandlerBuilder maximumRedeliveries(int maximumRedeliveries)
-
disableRedelivery
public DefaultErrorHandlerBuilder disableRedelivery()
-
maximumRedeliveryDelay
public DefaultErrorHandlerBuilder maximumRedeliveryDelay(long maximumRedeliveryDelay)
-
useCollisionAvoidance
public DefaultErrorHandlerBuilder useCollisionAvoidance()
-
useExponentialBackOff
public DefaultErrorHandlerBuilder useExponentialBackOff()
-
retriesExhaustedLogLevel
public DefaultErrorHandlerBuilder retriesExhaustedLogLevel(org.apache.camel.LoggingLevel retriesExhaustedLogLevel)
-
retryAttemptedLogLevel
public DefaultErrorHandlerBuilder retryAttemptedLogLevel(org.apache.camel.LoggingLevel retryAttemptedLogLevel)
-
retryAttemptedLogInterval
public DefaultErrorHandlerBuilder retryAttemptedLogInterval(int retryAttemptedLogInterval)
-
logStackTrace
public DefaultErrorHandlerBuilder logStackTrace(boolean logStackTrace)
-
logRetryStackTrace
public DefaultErrorHandlerBuilder logRetryStackTrace(boolean logRetryStackTrace)
-
logHandled
public DefaultErrorHandlerBuilder logHandled(boolean logHandled)
-
logNewException
public DefaultErrorHandlerBuilder logNewException(boolean logNewException)
-
logExhausted
public DefaultErrorHandlerBuilder logExhausted(boolean logExhausted)
-
logRetryAttempted
public DefaultErrorHandlerBuilder logRetryAttempted(boolean logRetryAttempted)
-
logExhaustedMessageHistory
public DefaultErrorHandlerBuilder logExhaustedMessageHistory(boolean logExhaustedMessageHistory)
-
logExhaustedMessageBody
public DefaultErrorHandlerBuilder logExhaustedMessageBody(boolean logExhaustedMessageBody)
-
exchangeFormatterRef
public DefaultErrorHandlerBuilder exchangeFormatterRef(String exchangeFormatterRef)
-
asyncDelayedRedelivery
public DefaultErrorHandlerBuilder asyncDelayedRedelivery()
Will allow asynchronous delayed redeliveries. The route, in particular the consumer's component, must support the Asynchronous Routing Engine (e.g. seda)- Returns:
- the builder
- See Also:
RedeliveryPolicy.setAsyncDelayedRedelivery(boolean)
-
allowRedeliveryWhileStopping
public DefaultErrorHandlerBuilder allowRedeliveryWhileStopping(boolean allowRedeliveryWhileStopping)
Controls whether to allow redelivery while stopping/shutting down a route that uses error handling.- Parameters:
allowRedeliveryWhileStopping
- true to allow redelivery, false to reject redeliveries- Returns:
- the builder
-
executorService
public DefaultErrorHandlerBuilder executorService(ScheduledExecutorService executorService)
Sets the thread pool to be used for redelivery.- Parameters:
executorService
- the scheduled thread pool to use- Returns:
- the builder.
-
executorServiceRef
public DefaultErrorHandlerBuilder executorServiceRef(String ref)
Sets a reference to a thread pool to be used for redelivery.- Parameters:
ref
- reference to a scheduled thread pool- Returns:
- the builder.
-
logger
public DefaultErrorHandlerBuilder logger(org.apache.camel.spi.CamelLogger logger)
Sets the logger used for caught exceptions- Parameters:
logger
- the logger- Returns:
- the builder
-
loggingLevel
public DefaultErrorHandlerBuilder loggingLevel(org.apache.camel.LoggingLevel level)
Sets the logging level of exceptions caught- Parameters:
level
- the logging level- Returns:
- the builder
-
log
public DefaultErrorHandlerBuilder log(org.slf4j.Logger log)
Sets the log used for caught exceptions- Parameters:
log
- the logger- Returns:
- the builder
-
log
public DefaultErrorHandlerBuilder log(String log)
Sets the log used for caught exceptions- Parameters:
log
- the log name- Returns:
- the builder
-
log
public DefaultErrorHandlerBuilder log(Class<?> log)
Sets the log used for caught exceptions- Parameters:
log
- the log class- Returns:
- the builder
-
onRedelivery
public DefaultErrorHandlerBuilder onRedelivery(org.apache.camel.Processor processor)
Sets a processor that should be processed before a redelivery attempt. Can be used to change theExchange
before its being redelivered.- Parameters:
processor
- the processor- Returns:
- the builder
-
onRedeliveryRef
public DefaultErrorHandlerBuilder onRedeliveryRef(String onRedeliveryRef)
Sets a reference for the processor to use before a redelivery attempt.- Parameters:
onRedeliveryRef
- the processor's reference- Returns:
- the builder
- See Also:
onRedelivery(Processor)
-
retryWhile
public DefaultErrorHandlerBuilder retryWhile(org.apache.camel.Expression retryWhile)
Sets the retry while expression. Will continue retrying until expression evaluates to false.- Parameters:
retryWhile
- expression that determines when to stop retrying- Returns:
- the builder
-
retryWhileRef
public DefaultErrorHandlerBuilder retryWhileRef(String retryWhileRef)
-
useOriginalMessage
public DefaultErrorHandlerBuilder useOriginalMessage()
Will use the original inputMessage
(original body and headers) when anExchange
is moved to the dead letter queue. Notice: this only applies when all redeliveries attempt have failed and theExchange
is doomed for failure.
Instead of using the current inprogressExchange
IN message we use the original IN message instead. This allows you to store the original input in the dead letter queue instead of the inprogress snapshot of the IN message. For instance if you route transform the IN body during routing and then failed. With the original exchange store in the dead letter queue it might be easier to manually re submit theExchange
again as the IN message is the same as when Camel received it. So you should be able to send theExchange
to the same input. The difference between useOriginalMessage and useOriginalBody is that the former includes both the original body and headers, where as the latter only includes the original body. You can use the latter to enrich the message with custom headers and include the original message body. The former wont let you do this, as its using the original message body and headers as they are. You cannot enable both useOriginalMessage and useOriginalBody. Important: The original input means the input message that are bounded by the currentUnitOfWork
. An unit of work typically spans one route, or multiple routes if they are connected using internal endpoints such as direct or seda. When messages is passed via external endpoints such as JMS or HTTP then the consumer will create a new unit of work, with the message it received as input as the original input. Also some EIP patterns such as splitter, multicast, will create a new unit of work boundary for the messages in their sub-route (eg the splitted message); however these EIPs have an option named shareUnitOfWork which allows to combine with the parent unit of work in regard to error handling and therefore use the parent original message. By default this feature is off.- Returns:
- the builder
- See Also:
useOriginalBody()
-
useOriginalBody
public DefaultErrorHandlerBuilder useOriginalBody()
Will use the original inputMessage
body (original body only) when anExchange
is moved to the dead letter queue. Notice: this only applies when all redeliveries attempt have failed and theExchange
is doomed for failure.
Instead of using the current inprogressExchange
IN message we use the original IN message instead. This allows you to store the original input in the dead letter queue instead of the inprogress snapshot of the IN message. For instance if you route transform the IN body during routing and then failed. With the original exchange store in the dead letter queue it might be easier to manually re submit theExchange
again as the IN message is the same as when Camel received it. So you should be able to send theExchange
to the same input. The difference between useOriginalMessage and useOriginalBody is that the former includes both the original body and headers, where as the latter only includes the original body. You can use the latter to enrich the message with custom headers and include the original message body. The former wont let you do this, as its using the original message body and headers as they are. You cannot enable both useOriginalMessage and useOriginalBody. Important: The original input means the input message that are bounded by the currentUnitOfWork
. An unit of work typically spans one route, or multiple routes if they are connected using internal endpoints such as direct or seda. When messages is passed via external endpoints such as JMS or HTTP then the consumer will create a new unit of work, with the message it received as input as the original input. Also some EIP patterns such as splitter, multicast, will create a new unit of work boundary for the messages in their sub-route (eg the splitted message); however these EIPs have an option named shareUnitOfWork which allows to combine with the parent unit of work in regard to error handling and therefore use the parent original message. By default this feature is off.- Returns:
- the builder
- See Also:
useOriginalMessage()
-
deadLetterHandleNewException
public DefaultErrorHandlerBuilder deadLetterHandleNewException(boolean handleNewException)
Whether the dead letter channel should handle (and ignore) any new exception that may been thrown during sending the message to the dead letter endpoint. The default value is true which means any such kind of exception is handled and ignored. Set this to false to let the exception be propagated back on theExchange
. This can be used in situations where you use transactions, and want to use Camel's dead letter channel to deal with exceptions during routing, but if the dead letter channel itself fails because of a new exception being thrown, then by setting this to false the new exceptions is propagated back and set on theExchange
, which allows the transaction to detect the exception, and rollback.- Parameters:
handleNewException
- true to handle (and ignore), false to catch and propagated the exception on theExchange
- Returns:
- the builder
-
onPrepareFailure
public DefaultErrorHandlerBuilder onPrepareFailure(org.apache.camel.Processor processor)
Sets a customProcessor
to prepare theExchange
before handled by the failure processor / dead letter channel. This allows for example to enrich the message before sending to a dead letter queue.- Parameters:
processor
- the processor- Returns:
- the builder
-
onPrepareFailureRef
public DefaultErrorHandlerBuilder onPrepareFailureRef(String onPrepareFailureRef)
Sets a reference for the processor to use before handled by the failure processor.- Parameters:
onPrepareFailureRef
- the processor's reference- Returns:
- the builder
- See Also:
onPrepareFailure(Processor)
-
onExceptionOccurred
public DefaultErrorHandlerBuilder onExceptionOccurred(org.apache.camel.Processor processor)
Sets a customProcessor
to process theExchange
just after an exception was thrown. This allows to execute the processor at the same time the exception was thrown. Important: Any exception thrown from this processor will be ignored.- Parameters:
processor
- the processor- Returns:
- the builder
-
onExceptionOccurredRef
public DefaultErrorHandlerBuilder onExceptionOccurredRef(String onExceptionOccurredRef)
Sets a reference for the processor to use just after an exception was thrown.- Parameters:
onExceptionOccurredRef
- the processor's reference- Returns:
- the builder
- See Also:
onExceptionOccurred(Processor)
-
hasRedeliveryPolicy
public boolean hasRedeliveryPolicy()
- Specified by:
hasRedeliveryPolicy
in interfaceDefaultErrorHandlerProperties
-
getDefaultRedeliveryPolicy
public org.apache.camel.processor.errorhandler.RedeliveryPolicy getDefaultRedeliveryPolicy()
- Specified by:
getDefaultRedeliveryPolicy
in interfaceDefaultErrorHandlerProperties
-
getRedeliveryPolicy
public org.apache.camel.processor.errorhandler.RedeliveryPolicy getRedeliveryPolicy()
- Specified by:
getRedeliveryPolicy
in interfaceDefaultErrorHandlerProperties
-
setRedeliveryPolicy
public void setRedeliveryPolicy(org.apache.camel.processor.errorhandler.RedeliveryPolicy redeliveryPolicy)
Sets the redelivery policy- Specified by:
setRedeliveryPolicy
in interfaceDefaultErrorHandlerProperties
-
hasLogger
public boolean hasLogger()
- Specified by:
hasLogger
in interfaceDefaultErrorHandlerProperties
-
getLogger
public org.apache.camel.spi.CamelLogger getLogger()
- Specified by:
getLogger
in interfaceDefaultErrorHandlerProperties
-
setLogger
public void setLogger(org.apache.camel.spi.CamelLogger logger)
- Specified by:
setLogger
in interfaceDefaultErrorHandlerProperties
-
getOnRedelivery
public org.apache.camel.Processor getOnRedelivery()
- Specified by:
getOnRedelivery
in interfaceDefaultErrorHandlerProperties
-
setOnRedelivery
public void setOnRedelivery(org.apache.camel.Processor onRedelivery)
- Specified by:
setOnRedelivery
in interfaceDefaultErrorHandlerProperties
-
getOnRedeliveryRef
public String getOnRedeliveryRef()
- Specified by:
getOnRedeliveryRef
in interfaceDefaultErrorHandlerProperties
-
setOnRedeliveryRef
public void setOnRedeliveryRef(String onRedeliveryRef)
- Specified by:
setOnRedeliveryRef
in interfaceDefaultErrorHandlerProperties
-
getRetryWhilePolicy
public org.apache.camel.Predicate getRetryWhilePolicy(org.apache.camel.CamelContext context)
-
getRetryWhile
public org.apache.camel.Predicate getRetryWhile()
- Specified by:
getRetryWhile
in interfaceDefaultErrorHandlerProperties
-
setRetryWhile
public void setRetryWhile(org.apache.camel.Predicate retryWhile)
- Specified by:
setRetryWhile
in interfaceDefaultErrorHandlerProperties
-
getRetryWhileRef
public String getRetryWhileRef()
- Specified by:
getRetryWhileRef
in interfaceDefaultErrorHandlerProperties
-
setRetryWhileRef
public void setRetryWhileRef(String retryWhileRef)
- Specified by:
setRetryWhileRef
in interfaceDefaultErrorHandlerProperties
-
getDeadLetterUri
public String getDeadLetterUri()
- Specified by:
getDeadLetterUri
in interfaceDefaultErrorHandlerProperties
-
setDeadLetterUri
public void setDeadLetterUri(String deadLetterUri)
- Specified by:
setDeadLetterUri
in interfaceDefaultErrorHandlerProperties
-
isDeadLetterHandleNewException
public boolean isDeadLetterHandleNewException()
- Specified by:
isDeadLetterHandleNewException
in interfaceDefaultErrorHandlerProperties
-
setDeadLetterHandleNewException
public void setDeadLetterHandleNewException(boolean deadLetterHandleNewException)
- Specified by:
setDeadLetterHandleNewException
in interfaceDefaultErrorHandlerProperties
-
isUseOriginalMessage
public boolean isUseOriginalMessage()
- Specified by:
isUseOriginalMessage
in interfaceDefaultErrorHandlerProperties
-
setUseOriginalMessage
public void setUseOriginalMessage(boolean useOriginalMessage)
- Specified by:
setUseOriginalMessage
in interfaceDefaultErrorHandlerProperties
-
isUseOriginalBody
public boolean isUseOriginalBody()
- Specified by:
isUseOriginalBody
in interfaceDefaultErrorHandlerProperties
-
setUseOriginalBody
public void setUseOriginalBody(boolean useOriginalBody)
- Specified by:
setUseOriginalBody
in interfaceDefaultErrorHandlerProperties
-
isAsyncDelayedRedelivery
public boolean isAsyncDelayedRedelivery()
- Specified by:
isAsyncDelayedRedelivery
in interfaceDefaultErrorHandlerProperties
-
setAsyncDelayedRedelivery
public void setAsyncDelayedRedelivery(boolean asyncDelayedRedelivery)
- Specified by:
setAsyncDelayedRedelivery
in interfaceDefaultErrorHandlerProperties
-
getExecutorService
public ScheduledExecutorService getExecutorService()
- Specified by:
getExecutorService
in interfaceDefaultErrorHandlerProperties
-
setExecutorService
public void setExecutorService(ScheduledExecutorService executorService)
- Specified by:
setExecutorService
in interfaceDefaultErrorHandlerProperties
-
getExecutorServiceRef
public String getExecutorServiceRef()
- Specified by:
getExecutorServiceRef
in interfaceDefaultErrorHandlerProperties
-
setExecutorServiceRef
public void setExecutorServiceRef(String executorServiceRef)
- Specified by:
setExecutorServiceRef
in interfaceDefaultErrorHandlerProperties
-
getOnPrepareFailure
public org.apache.camel.Processor getOnPrepareFailure()
- Specified by:
getOnPrepareFailure
in interfaceDefaultErrorHandlerProperties
-
setOnPrepareFailure
public void setOnPrepareFailure(org.apache.camel.Processor onPrepareFailure)
- Specified by:
setOnPrepareFailure
in interfaceDefaultErrorHandlerProperties
-
getOnPrepareFailureRef
public String getOnPrepareFailureRef()
- Specified by:
getOnPrepareFailureRef
in interfaceDefaultErrorHandlerProperties
-
setOnPrepareFailureRef
public void setOnPrepareFailureRef(String onPrepareFailureRef)
- Specified by:
setOnPrepareFailureRef
in interfaceDefaultErrorHandlerProperties
-
getOnExceptionOccurred
public org.apache.camel.Processor getOnExceptionOccurred()
- Specified by:
getOnExceptionOccurred
in interfaceDefaultErrorHandlerProperties
-
setOnExceptionOccurred
public void setOnExceptionOccurred(org.apache.camel.Processor onExceptionOccurred)
- Specified by:
setOnExceptionOccurred
in interfaceDefaultErrorHandlerProperties
-
getOnExceptionOccurredRef
public String getOnExceptionOccurredRef()
- Specified by:
getOnExceptionOccurredRef
in interfaceDefaultErrorHandlerProperties
-
setOnExceptionOccurredRef
public void setOnExceptionOccurredRef(String onExceptionOccurredRef)
- Specified by:
setOnExceptionOccurredRef
in interfaceDefaultErrorHandlerProperties
-
createRedeliveryPolicy
protected org.apache.camel.processor.errorhandler.RedeliveryPolicy createRedeliveryPolicy()
-
createLogger
protected org.apache.camel.spi.CamelLogger createLogger()
-
-