public interface ProducerCallback<T>
| Modifier and Type | Method and Description |
|---|---|
T |
doInProducer(Producer producer,
Exchange exchange,
ExchangePattern exchangePattern)
Performs operation on the given producer to send the given exchange.
|
T doInProducer(Producer producer, Exchange exchange, ExchangePattern exchangePattern) throws Exception
producer - the producer, is never nullexchange - the exchange, can be null if so then create a new exchange from the producerexchangePattern - the exchange pattern, can be nullException - if an internal processing error has occurred.Apache Camel