public final class EmptyAsyncCallback extends Object implements AsyncCallback
AsyncCallback
which allows to share the same instance instead of creating a new instance for each message.Constructor and Description |
---|
EmptyAsyncCallback() |
Modifier and Type | Method and Description |
---|---|
void |
done(boolean doneSync)
This method is invoked once the
Exchange is done. |
static AsyncCallback |
get() |
public EmptyAsyncCallback()
public static AsyncCallback get()
public void done(boolean doneSync)
AsyncCallback
Exchange
is done.
If an exception occurred while processing the exchange, the exception field of the
Exchange
being processed will hold the caused exception.done
in interface AsyncCallback
doneSync
- is true if the processing of the Exchange
was completed by a synchronous thread.
Otherwise its false to indicate it was completed by an asynchronous thread.Apache Camel