Interface Synchronization
- All Known Subinterfaces:
SynchronizationVetoable
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable SynchronizationRouteAwareGet an optionalSynchronizationRouteAwarefor this synchronizationvoidonComplete(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
-
getRouteSynchronization
Get an optionalSynchronizationRouteAwarefor this synchronization- Returns:
- An instance of
SynchronizationRouteAwareor null if unset for this synchronization
-