org.apache.camel.impl
Class DefaultAsyncProducer
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultProducer
org.apache.camel.impl.DefaultAsyncProducer
- All Implemented Interfaces:
- AsyncProcessor, IsSingleton, Processor, Producer, Service, ShutdownableService, StatefulService, SuspendableService
- Direct Known Subclasses:
- CollectionProducer, DirectProducer, DirectVmProducer, LogProducer, SedaProducer
public abstract class DefaultAsyncProducer
- extends DefaultProducer
- implements AsyncProcessor
A default implementation of Producer
for implementation inheritance,
which can process Exchange
s asynchronously.
- Version:
Method Summary |
void |
process(Exchange exchange)
Processes the message exchange |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
DefaultAsyncProducer
public DefaultAsyncProducer(Endpoint endpoint)
process
public void process(Exchange exchange)
throws Exception
- Description copied from interface:
Processor
- Processes the message exchange
- Specified by:
process
in interface Processor
- Parameters:
exchange
- the message exchange
- Throws:
Exception
- if an internal processing error has occurred.
Apache CAMEL