public class SharedCamelInternalProcessor extends Object
Processor
that Camel routing engine used during routing for cross cutting functionality such as:
UnitOfWork
RoutePolicy
Transformer
CamelInternalProcessorAdvice
advice (before and after advice)
by executing the CamelInternalProcessorAdvice.before(Exchange)
and
CamelInternalProcessorAdvice.after(Exchange, Object)
callbacks in correct order during routing.
This reduces number of stack frames needed during routing, and reduce the number of lines in stacktraces, as well
makes debugging the routing engine easier for end users.
Debugging tips: Camel end users whom want to debug their Camel applications with the Camel source code, then make sure to
read the source code of this class about the debugging tips, which you can find in the
process(Exchange, AsyncCallback, AsyncProcessor, Processor)
method.
The added advices can implement Ordered
to control in which order the advices are executed.Constructor and Description |
---|
SharedCamelInternalProcessor(CamelInternalProcessorAdvice... advices) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
continueProcessing(Exchange exchange,
AsyncProcessor processor)
Strategy to determine if we should continue processing the
Exchange . |
boolean |
process(Exchange exchange,
AsyncCallback callback,
AsyncProcessor processor,
Processor resultProcessor)
Asynchronous API
|
void |
process(Exchange exchange,
AsyncProcessor processor,
Processor resultProcessor)
Synchronous API
|
public SharedCamelInternalProcessor(CamelInternalProcessorAdvice... advices)
public void process(Exchange exchange, AsyncProcessor processor, Processor resultProcessor)
public boolean process(Exchange exchange, AsyncCallback callback, AsyncProcessor processor, Processor resultProcessor)
protected boolean continueProcessing(Exchange exchange, AsyncProcessor processor)
Exchange
.Apache Camel