Package org.apache.camel.spi
Interface Synchronization
- All Known Subinterfaces:
SynchronizationRouteAware,SynchronizationVetoable
public interface Synchronization
Provides a hook for custom
Processor or Component instances to
respond to completed or failed processing of an Exchange rather like Spring's
TransactionSynchronization-
Method Summary
Modifier and TypeMethodDescriptionvoidonComplete(Exchange exchange) Called when the processing of the message exchange is completevoidCalled when the processing of the message exchange has failed for some reason.
-
Method Details
-
onComplete
Called when the processing of the message exchange is complete- Parameters:
exchange- the exchange being processed
-
onFailure
Called when the processing of the message exchange has failed for some reason. The exception which caused the problem is inExchange.getException().- Parameters:
exchange- the exchange being processed
-