public interface AsyncCallback
AsyncProcessorso that it can notify you when an
Exchangeis done. For example a
AsyncProcessorshould invoke the done method when the
Exchangeis ready to be continued routed. This allows to implement asynchronous
Producerwhich can continue routing
Exchangewhen all the data has been gathered. This allows to build non blocking request/reply communication.
void done(boolean doneSync)
Exchangeis done. If an exception occurred while processing the exchange, the exception field of the
Exchangebeing processed will hold the caused exception.
doneSync- is true if the processing of the
Exchangewas completed by a synchronous thread. Otherwise its false to indicate it was completed by an asynchronous thread.