public interface Synchronization
Processor or Component
instances to respond to completed or failed processing of an Exchange rather like Spring's
TransactionSynchronization| Modifier and Type | Method and Description |
|---|---|
void |
onComplete(Exchange exchange)
Called when the processing of the message exchange is complete
|
void |
onFailure(Exchange exchange)
Called when the processing of the message exchange has failed for some reason.
|
void onComplete(Exchange exchange)
exchange - the exchange being processedvoid onFailure(Exchange exchange)
Exchange.getException().exchange - the exchange being processedApache Camel