public class DelegateAsyncProcessor extends AsyncProcessorSupport implements org.apache.camel.DelegateProcessor, org.apache.camel.Navigate<org.apache.camel.Processor>
AsyncProcessor
which can be useful for
implementation inheritance when writing an Policy
Important: This implementation does support the asynchronous routing engine. If you are implementing a
EIP pattern please use this as the delegate.DelegateSyncProcessor
,
DelegateProcessor
Modifier and Type | Field and Description |
---|---|
protected org.apache.camel.AsyncProcessor |
processor |
Constructor and Description |
---|
DelegateAsyncProcessor() |
DelegateAsyncProcessor(org.apache.camel.AsyncProcessor processor) |
DelegateAsyncProcessor(org.apache.camel.Processor processor) |
Modifier and Type | Method and Description |
---|---|
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.AsyncProcessor |
getProcessor() |
boolean |
hasNext() |
List<org.apache.camel.Processor> |
next() |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
void |
setProcessor(org.apache.camel.AsyncProcessor processor) |
void |
setProcessor(org.apache.camel.Processor processor) |
String |
toString() |
process, processAsync
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 DelegateAsyncProcessor()
public DelegateAsyncProcessor(org.apache.camel.AsyncProcessor processor)
public DelegateAsyncProcessor(org.apache.camel.Processor processor)
public org.apache.camel.AsyncProcessor getProcessor()
getProcessor
in interface org.apache.camel.DelegateProcessor
public void setProcessor(org.apache.camel.AsyncProcessor processor)
public void setProcessor(org.apache.camel.Processor processor)
protected void doStart() throws Exception
doStart
in class AsyncProcessorSupport
Exception
protected void doStop() throws Exception
doStop
in class AsyncProcessorSupport
Exception
protected void doShutdown() throws Exception
doShutdown
in class org.apache.camel.support.service.BaseService
Exception
public boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
process
in interface org.apache.camel.AsyncProcessor
public boolean hasNext()
hasNext
in interface org.apache.camel.Navigate<org.apache.camel.Processor>
public List<org.apache.camel.Processor> next()
next
in interface org.apache.camel.Navigate<org.apache.camel.Processor>
Apache Camel