public class InterceptorToAsyncProcessorBridge
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.AsyncProcessor
Processor
work with the asynchronous routing engine without causing side effects.Constructor and Description |
---|
InterceptorToAsyncProcessorBridge(org.apache.camel.Processor interceptor)
Constructs the bridge
|
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
void |
process(org.apache.camel.Exchange exchange)
Process invoked by the interceptor
|
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
CompletableFuture<org.apache.camel.Exchange> |
processAsync(org.apache.camel.Exchange exchange) |
void |
setTarget(org.apache.camel.Processor target) |
String |
toString() |
build, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public InterceptorToAsyncProcessorBridge(org.apache.camel.Processor interceptor)
interceptor
- the interceptor to bridgepublic void process(org.apache.camel.Exchange exchange) throws Exception
process
in interface org.apache.camel.Processor
exchange
- the message exchangeException
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 setTarget(org.apache.camel.Processor target)
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.ServiceSupport
Exception
Apache Camel