|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.processor.MulticastProcessor
org.apache.camel.processor.Pipeline
public class Pipeline
Creates a Pipeline pattern where the output of the previous step is sent as input to the next step, reusing the same message exchanges
| Constructor Summary | |
|---|---|
Pipeline(CamelContext camelContext,
Collection<Processor> processors)
|
|
| Method Summary | |
|---|---|
protected boolean |
continueRouting(Iterator<Processor> it,
Exchange exchange)
|
protected Exchange |
createNextExchange(Exchange previousExchange)
Strategy method to create the next exchange from the previous exchange. |
String |
getTraceLabel()
Gets the trace label used for logging when tracing is enabled. |
static Processor |
newInstance(CamelContext camelContext,
List<Processor> processors)
|
void |
process(Exchange exchange)
Processes the message exchange |
boolean |
process(Exchange exchange,
AsyncCallback callback)
Processes the message exchange. |
String |
toString()
|
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pipeline(CamelContext camelContext,
Collection<Processor> processors)
| Method Detail |
|---|
public static Processor newInstance(CamelContext camelContext,
List<Processor> processors)
public void process(Exchange exchange)
throws Exception
Processor
process in interface Processorprocess in class MulticastProcessorexchange - the message exchange
Exception - if an internal processing error has occurred.
public boolean process(Exchange exchange,
AsyncCallback callback)
AsyncProcessorProcessor.process(org.apache.camel.Exchange), but the caller supports having the exchange asynchronously processed.
If there was a failure processing then the caused Exception would be set on the Exchange.
process in interface AsyncProcessorprocess in class MulticastProcessorexchange - the message exchangecallback - the AsyncCallback will be invoked when the processing of the exchange is completed.
If the exchange is completed synchronously, then the callback is also invoked synchronously.
The callback should therefore be careful of starting recursive loop.
AsyncProcessorHelper.process(AsyncProcessor, Exchange, AsyncCallback)protected Exchange createNextExchange(Exchange previousExchange)
previousExchange - the previous exchange
protected boolean continueRouting(Iterator<Processor> it,
Exchange exchange)
public String toString()
toString in class MulticastProcessorpublic String getTraceLabel()
Traceable
getTraceLabel in interface TraceablegetTraceLabel in class MulticastProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||