public static class CamelInternalProcessor.MessageHistoryAdvice extends Object implements CamelInternalProcessorAdvice<MessageHistory>
| Constructor and Description |
|---|
MessageHistoryAdvice(MessageHistoryFactory factory,
ProcessorDefinition<?> definition) |
| Modifier and Type | Method and Description |
|---|---|
void |
after(Exchange exchange,
MessageHistory history)
Callback executed after processing a step in the route.
|
MessageHistory |
before(Exchange exchange)
Callback executed before processing a step in the route.
|
public MessageHistoryAdvice(MessageHistoryFactory factory, ProcessorDefinition<?> definition)
public MessageHistory before(Exchange exchange) throws Exception
CamelInternalProcessorAdvicebefore in interface CamelInternalProcessorAdvice<MessageHistory>exchange - the current exchangeCamelInternalProcessorAdvice.after(org.apache.camel.Exchange, Object) method, or use null for no state.Exception - is thrown if error during the call.public void after(Exchange exchange, MessageHistory history) throws Exception
CamelInternalProcessorAdviceafter in interface CamelInternalProcessorAdvice<MessageHistory>exchange - the current exchangehistory - the state, if any, returned in the CamelInternalProcessorAdvice.before(org.apache.camel.Exchange) method.Exception - is thrown if error during the call.Apache Camel