org.apache.camel.impl
Class SynchronizationAdapter
java.lang.Object
org.apache.camel.impl.SynchronizationAdapter
- All Implemented Interfaces:
- Synchronization
public class SynchronizationAdapter
- extends Object
- implements Synchronization
Simple Synchronization
adapter with empty methods for easier overriding
of single methods.
- Version:
- $Revision: 780261 $
Method Summary |
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 |
SynchronizationAdapter
public SynchronizationAdapter()
onComplete
public void onComplete(Exchange exchange)
- Description copied from interface:
Synchronization
- Called when the processing of the message exchange is complete
- Specified by:
onComplete
in interface Synchronization
- Parameters:
exchange
- the exchange being processed
onFailure
public void onFailure(Exchange exchange)
- Description copied from interface:
Synchronization
- Called when the processing of the message exchange has failed for some reason.
The exception which caused the problem is in
Exchange.getException()
and
there could be a fault message via Message.isFault()
- Specified by:
onFailure
in interface Synchronization
- Parameters:
exchange
- the exchange being processed
onDone
public void onDone(Exchange exchange)
Copyright © 2007-2009 The Apache Software Foundation. All Rights Reserved.