Package org.apache.camel.spi
Interface Synchronization
-
- All Known Subinterfaces:
SynchronizationRouteAware,SynchronizationVetoable
public interface SynchronizationProvides a hook for customProcessororComponentinstances to respond to completed or failed processing of anExchangerather like Spring's TransactionSynchronization
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonComplete(Exchange exchange)Called when the processing of the message exchange is completevoidonFailure(Exchange exchange)Called when the processing of the message exchange has failed for some reason.
-
-
-
Method Detail
-
onComplete
void onComplete(Exchange exchange)
Called when the processing of the message exchange is complete- Parameters:
exchange- the exchange being processed
-
onFailure
void onFailure(Exchange exchange)
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
-
-