public abstract class DefaultAsyncProducer extends DefaultProducer implements org.apache.camel.AsyncProducer
Producer
for implementation inheritance,
which can process Exchange
s asynchronously.Constructor and Description |
---|
DefaultAsyncProducer(org.apache.camel.Endpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
void |
process(org.apache.camel.Exchange exchange) |
CompletableFuture<org.apache.camel.Exchange> |
processAsync(org.apache.camel.Exchange exchange) |
createExchange, doStart, doStop, getEndpoint, isSingleton, 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 DefaultAsyncProducer(org.apache.camel.Endpoint endpoint)
public void process(org.apache.camel.Exchange exchange) throws Exception
process
in interface org.apache.camel.Processor
Exception
public CompletableFuture<org.apache.camel.Exchange> processAsync(org.apache.camel.Exchange exchange)
processAsync
in interface org.apache.camel.AsyncProcessor
Apache Camel