public class NullCompletionHandler<R,E extends Throwable> extends Object implements CompletionHandler<R,E>
| Constructor and Description |
|---|
NullCompletionHandler() |
| 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
|
public void onCompletion(R result, ExceptionCallback<Throwable> exceptionCallback)
CompletionHandler
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
onCompletion in interface CompletionHandler<R,E extends Throwable>result - the result of processingexceptionCallback - handles errors processing the resultpublic void onFailure(E exception)
CompletionHandleronFailure in interface CompletionHandler<R,E extends Throwable>exception - the exception thrown during processingCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.