R - The type of the processing response valuepublic interface CompletionHandler<R,E extends Throwable>
| Modifier and Type | Method and Description |
|---|---|
void |
onCompletion(R result,
ExceptionCallback<Throwable> exceptionCallback)
Invoked on successful completion of asynchronous processing.
|
void |
onFailure(E exception)
Invoked when a failure occurs during asynchronous processing
|
void onCompletion(R result, ExceptionCallback<Throwable> exceptionCallback)
Exceptions found while processing the result are to be notified through
the exceptionCallback, which might (depending on HandledCompletionExceptionResult)
produce a new value as the result of handling such error
result - the result of processingexceptionCallback - handles errors processing the resultvoid onFailure(E exception)
exception - the exception thrown during processingCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.