Package org.apache.camel.spi
Interface ErrorHandlerRedeliveryCustomizer
public interface ErrorHandlerRedeliveryCustomizer
Customizer for
ErrorHandler
which supports redeliveries. This is used internally by Camel to instrument the
error handler with additional instrumentations during route initialization.-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeOutput
(Processor output) Allows to change the output of the error handler which are used when optimising the JMX instrumentation to use either an advice or wrapped processor when calling a processor.boolean
Determines if redelivery is enabled by checking if any of the redelivery policy settings may allow redeliveries.Returns the output processor
-
Method Details
-
determineIfRedeliveryIsEnabled
Determines if redelivery is enabled by checking if any of the redelivery policy settings may allow redeliveries.- Returns:
- true if redelivery is possible, false otherwise
- Throws:
Exception
- can be thrown
-
getOutput
Processor getOutput()Returns the output processor -
changeOutput
Allows to change the output of the error handler which are used when optimising the JMX instrumentation to use either an advice or wrapped processor when calling a processor. The former is faster and therefore preferred, however if the error handler supports redelivery we need fine grained instrumentation which then must be wrapped and therefore need to change the output on the error handler.
-