public static final class CamelInternalProcessor.BacklogTracerAdvice extends Object implements CamelInternalProcessorAdvice, Ordered
BacklogTracer
if enabled.Constructor and Description |
---|
BacklogTracerAdvice(BacklogTracer backlogTracer,
ProcessorDefinition<?> processorDefinition,
ProcessorDefinition<?> routeDefinition,
boolean first) |
Modifier and Type | Method and Description |
---|---|
void |
after(Exchange exchange,
Object data)
Callback executed after processing a step in the route.
|
Object |
before(Exchange exchange)
Callback executed before processing a step in the route.
|
int |
getOrder()
Gets the order.
|
public BacklogTracerAdvice(BacklogTracer backlogTracer, ProcessorDefinition<?> processorDefinition, ProcessorDefinition<?> routeDefinition, boolean first)
public Object before(Exchange exchange) throws Exception
CamelInternalProcessorAdvice
before
in interface CamelInternalProcessorAdvice
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, Object data) throws Exception
CamelInternalProcessorAdvice
after
in interface CamelInternalProcessorAdvice
exchange
- the current exchangedata
- the state, if any, returned in the CamelInternalProcessorAdvice.before(org.apache.camel.Exchange)
method.Exception
- is thrown if error during the call.public int getOrder()
Ordered
Integer.MAX_VALUE
or eg Ordered.LOWEST
.Apache Camel