T - public interface CamelInternalProcessorAdvice<T>
before(org.apache.camel.Exchange) and
after(org.apache.camel.Exchange, Object) methods during routing in correct order.CamelInternalProcessor| Modifier and Type | Method and Description |
|---|---|
void |
after(Exchange exchange,
T data)
Callback executed after processing a step in the route.
|
T |
before(Exchange exchange)
Callback executed before processing a step in the route.
|
T before(Exchange exchange) throws Exception
exchange - the current exchangeafter(org.apache.camel.Exchange, Object) method, or use null for no state.Exception - is thrown if error during the call.void after(Exchange exchange, T data) throws Exception
exchange - the current exchangedata - the state, if any, returned in the before(org.apache.camel.Exchange) method.Exception - is thrown if error during the call.Apache Camel