public class SynchronizationAdapter extends Object implements SynchronizationVetoable, Ordered
Synchronization
adapter with empty methods for easier overriding
of single methods.Constructor and Description |
---|
SynchronizationAdapter() |
Modifier and Type | Method and Description |
---|---|
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.
|
public SynchronizationAdapter()
public void onComplete(Exchange exchange)
Synchronization
onComplete
in interface Synchronization
exchange
- the exchange being processedpublic void onFailure(Exchange exchange)
Synchronization
Exchange.getException()
and
there could be a fault message via Message.isFault()
onFailure
in interface Synchronization
exchange
- the exchange being processedpublic boolean allowHandover()
SynchronizationVetoable
Exchange
is being routed
from one thread to another thread, such as using request/reply over SEDAallowHandover
in interface SynchronizationVetoable
public int getOrder()
Ordered
Integer.MAX_VALUE
or eg Ordered.LOWEST
.Apache Camel