|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.support.SynchronizationAdapter
public class SynchronizationAdapter
Simple Synchronization adapter with empty methods for easier overriding
of single methods.
| Field Summary |
|---|
| Fields inherited from interface org.apache.camel.Ordered |
|---|
HIGHEST, LOWEST |
| Constructor Summary | |
|---|---|
SynchronizationAdapter()
|
|
| Method Summary | |
|---|---|
boolean |
allowHandover()
Whether or not handover this synchronization is allowed. |
int |
getOrder()
Gets the order. |
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. |
void |
onComplete(Exchange exchange)
Called when the processing of the message exchange is complete |
void |
onDone(Exchange exchange)
|
void |
onFailure(Exchange exchange)
Called when the processing of the message exchange has failed for some reason. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SynchronizationAdapter()
| Method Detail |
|---|
public void onComplete(Exchange exchange)
Synchronization
onComplete in interface Synchronizationexchange - the exchange being processedpublic void onFailure(Exchange exchange)
SynchronizationExchange.getException() and
there could be a fault message via Message.isFault()
onFailure in interface Synchronizationexchange - the exchange being processedpublic void onDone(Exchange exchange)
public boolean allowHandover()
SynchronizationVetoableExchange is being routed
from one thread to another thread, such as using request/reply over SEDA
allowHandover in interface SynchronizationVetoablepublic int getOrder()
OrderedInteger.MAX_VALUE or eg Ordered.LOWEST.
getOrder in interface Ordered
public void onBeforeRoute(Route route,
Exchange exchange)
SynchronizationRouteAwareExchange 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.
onBeforeRoute in interface SynchronizationRouteAwareroute - the routeexchange - the exchange
public void onAfterRoute(Route route,
Exchange exchange)
SynchronizationRouteAwareExchange 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).
onAfterRoute in interface SynchronizationRouteAwareroute - the routeexchange - the exchange
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||