|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.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.util.Ordered |
|---|
HIGHEST, LOWEST |
| Constructor Summary | |
|---|---|
SynchronizationAdapter()
|
|
| Method Summary | |
|---|---|
boolean |
allowHandover()
Whether or not handover this synchronization is allowed. |
int |
getOrder()
Gets the order. |
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||