org.apache.camel.impl
Class SynchronizationAdapter

java.lang.Object
  extended by 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 $

Constructor Summary
SynchronizationAdapter()
           
 
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
 

Constructor Detail

SynchronizationAdapter

public SynchronizationAdapter()
Method Detail

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 Exchange.getFault()

Specified by:
onFailure in interface Synchronization
Parameters:
exchange - the exchange being processed

onDone

public void onDone(Exchange exchange)


Apache CAMEL