org.apache.camel
Interface AsyncCallback
public interface AsyncCallback
The callback interface for an AsyncProcessor so that it can
notify you when an Exchange is done.
For example a AsyncProcessor should invoke the done method when the Exchange is ready
to be continued routed. This allows to implement asynchronous Producer which can continue
routing Exchange when all the data has been gathered. This allows to build non blocking
request/reply communication.
- Version:
- $Revision: 955853 $
|
Method Summary |
void |
done(boolean doneSync)
This method is invoked once the is done. |
done
void done(boolean doneSync)
- This method is invoked once the
is done.
If an exception occurred while processing the exchange, the exception field of the
Exchange being processed will hold the caused exception.
- Parameters:
doneSync - is true if the processing of the Exchange was completed by the synchronously thread.
Otherwise its false to indicate it was completed by the asynchronously thread.
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.