Search in sources :

Example 1 with DoFinallyRouteNode

use of org.apache.camel.impl.DoFinallyRouteNode in project camel by apache.

the class TraceInterceptor method traceDoFinally.

private void traceDoFinally(TracedRouteNodes traced, Exchange exchange) throws Exception {
    if (traced.getLastNode() != null) {
        traced.addTraced(new DefaultRouteNode(traced.getLastNode().getProcessorDefinition(), traced.getLastNode().getProcessor()));
    }
    traced.addTraced(new DoFinallyRouteNode());
    // log and trace so we have the from -> doFinally event as well
    logExchange(exchange);
    traceExchange(exchange);
    traced.addTraced(new DefaultRouteNode(node, super.getProcessor()));
}
Also used : DoFinallyRouteNode(org.apache.camel.impl.DoFinallyRouteNode) DefaultRouteNode(org.apache.camel.impl.DefaultRouteNode)

Aggregations

DefaultRouteNode (org.apache.camel.impl.DefaultRouteNode)1 DoFinallyRouteNode (org.apache.camel.impl.DoFinallyRouteNode)1