public class DelegateSyncProcessor
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.DelegateProcessor, org.apache.camel.AsyncProcessor, org.apache.camel.Navigate<org.apache.camel.Processor>
Processor
which can be
useful for implementation inheritance when writing an Policy
Important: This implementation does support the asynchronous routing engine, only. if the logic
in the process(org.apache.camel.Exchange)
does not invoke EIPs; as it forces using synchronous processing
during the process(org.apache.camel.Exchange)
method call. If you are implementing a EIP pattern please use
this as the delegate, for simple EIPs.DelegateAsyncProcessor
,
DelegateProcessor
Modifier and Type | Field and Description |
---|---|
protected org.apache.camel.Processor |
processor |
Constructor and Description |
---|
DelegateSyncProcessor(org.apache.camel.Processor processor) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.Processor |
getProcessor() |
boolean |
hasNext() |
List<org.apache.camel.Processor> |
next() |
void |
process(org.apache.camel.Exchange exchange) |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
CompletableFuture<org.apache.camel.Exchange> |
processAsync(org.apache.camel.Exchange exchange) |
String |
toString() |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, 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 DelegateSyncProcessor(org.apache.camel.Processor processor)
public org.apache.camel.Processor getProcessor()
getProcessor
in interface org.apache.camel.DelegateProcessor
public boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
process
in interface org.apache.camel.AsyncProcessor
public CompletableFuture<org.apache.camel.Exchange> processAsync(org.apache.camel.Exchange exchange)
processAsync
in interface org.apache.camel.AsyncProcessor
public void process(org.apache.camel.Exchange exchange) throws Exception
process
in interface org.apache.camel.Processor
Exception
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>
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.BaseService
Exception
Apache Camel