public static interface ProducerCache.AsyncProducerCallback
AsyncProcessor capable producer.
Using this callback as a template pattern ensures that Camel handles the resource handling and will
start and stop the given producer, to avoid resource leaks.| Modifier and Type | Method and Description |
|---|---|
boolean |
doInAsyncProducer(AsyncProducer asyncProducer,
Exchange exchange,
AsyncCallback callback)
Performs operation on the given producer to send the given exchange.
|
boolean doInAsyncProducer(AsyncProducer asyncProducer, Exchange exchange, AsyncCallback callback)
asyncProducer - the async producer, is never nullexchange - the exchange to processcallback - the async callbackApache Camel