public class OnCompletionProcessor
extends org.apache.camel.support.AsyncProcessorSupport
implements org.apache.camel.Traceable, org.apache.camel.spi.IdAware, org.apache.camel.spi.RouteIdAware
Constructor and Description |
---|
OnCompletionProcessor(org.apache.camel.CamelContext camelContext,
org.apache.camel.Processor processor,
ExecutorService executorService,
boolean shutdownExecutorService,
boolean onCompleteOnly,
boolean onFailureOnly,
org.apache.camel.Predicate onWhen,
boolean useOriginalBody,
boolean afterConsumer,
boolean routeScoped) |
Modifier and Type | Method and Description |
---|---|
protected static void |
doProcess(org.apache.camel.Processor processor,
org.apache.camel.Exchange exchange)
Processes the exchange by the processors
|
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
String |
getId() |
String |
getRouteId() |
String |
getTraceLabel() |
protected boolean |
isCreateCopy() |
protected org.apache.camel.Exchange |
prepareExchange(org.apache.camel.Exchange exchange)
Prepares the
Exchange to send as onCompletion. |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
void |
setId(String id) |
void |
setRouteId(String routeId) |
String |
toString() |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public OnCompletionProcessor(org.apache.camel.CamelContext camelContext, org.apache.camel.Processor processor, ExecutorService executorService, boolean shutdownExecutorService, boolean onCompleteOnly, boolean onFailureOnly, org.apache.camel.Predicate onWhen, boolean useOriginalBody, boolean afterConsumer, boolean routeScoped)
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.AsyncProcessorSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.AsyncProcessorSupport
Exception
protected void doShutdown() throws Exception
doShutdown
in class org.apache.camel.support.service.BaseService
Exception
public org.apache.camel.CamelContext getCamelContext()
public String getId()
getId
in interface org.apache.camel.spi.HasId
public void setId(String id)
setId
in interface org.apache.camel.spi.IdAware
public String getRouteId()
getRouteId
in interface org.apache.camel.spi.RouteIdAware
public void setRouteId(String routeId)
setRouteId
in interface org.apache.camel.spi.RouteIdAware
public boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
process
in interface org.apache.camel.AsyncProcessor
protected boolean isCreateCopy()
protected static void doProcess(org.apache.camel.Processor processor, org.apache.camel.Exchange exchange)
processor
- the processorexchange
- the exchangeprotected org.apache.camel.Exchange prepareExchange(org.apache.camel.Exchange exchange)
Exchange
to send as onCompletion.exchange
- the current exchangepublic String getTraceLabel()
getTraceLabel
in interface org.apache.camel.Traceable
Apache Camel