Package org.apache.camel.spi
Interface ErrorHandlerRedeliveryCustomizer
-
public interface ErrorHandlerRedeliveryCustomizerCustomizer forErrorHandlerwhich supports redeliveries. This is used internally by Camel to instrument the error handler with additional instrumentations during route initialization.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchangeOutput(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.booleandetermineIfRedeliveryIsEnabled()Determines if redelivery is enabled by checking if any of the redelivery policy settings may allow redeliveries.ProcessorgetOutput()Returns the output processor
-
-
-
Method Detail
-
determineIfRedeliveryIsEnabled
boolean determineIfRedeliveryIsEnabled() throws ExceptionDetermines 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
void 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. 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.
-
-