Response - The type of the processing response valueProcessingException - The exception type that the processing is expected to throwHandledCompletionExceptionResult - The type that the ExceptionCallback produces when it handles exceptionspublic interface CompletionHandler<Response,ProcessingException extends Throwable,HandledCompletionExceptionResult>
| Modifier and Type | Method and Description |
|---|---|
void |
onCompletion(Response result,
ExceptionCallback<HandledCompletionExceptionResult,Exception> exceptionCallback)
Invoked on successful completion of asynchronous processing.
|
void |
onFailure(ProcessingException exception)
Invoked when a failure occurs during asynchronous processing
|
void onCompletion(Response result, ExceptionCallback<HandledCompletionExceptionResult,Exception> 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(ProcessingException exception)
exception - the exception thrown during processingCopyright © 2016 MuleSoft, Inc.. All rights reserved.