public interface SynchronizationRouteAware extends Synchronization
Synchronization
which is route aware.Modifier and Type | Method and Description |
---|---|
void |
onAfterRoute(Route route,
Exchange exchange)
Invoked after the
Exchange has been routed by the given route. |
void |
onBeforeRoute(Route route,
Exchange exchange)
Invoked before the
Exchange is being routed by the given route. |
onComplete, onFailure
void onBeforeRoute(Route route, Exchange exchange)
Exchange
is being routed by the given route.
Notice if the exchange is being routed through multiple routes, there will be callbacks for each route.
Important: this callback may not invoked if the SynchronizationRouteAware
implementation is being added to the UnitOfWork
after the routing has started.route
- the routeexchange
- the exchangevoid onAfterRoute(Route route, Exchange exchange)
Exchange
has been routed by the given route.
Notice if the exchange is being routed through multiple routes, there will be callbacks for each route.
This invocation happens before these callbacks:
Synchronization.onComplete(org.apache.camel.Exchange)
or
Synchronization.onFailure(org.apache.camel.Exchange)
Consumer
prepares and writes any data back to the caller (if in InOut mode).route
- the routeexchange
- the exchangeApache Camel