Response - ProcessingException - HandledCompletionExceptionResult - public abstract class BlockingCompletionHandler<Response,ProcessingException extends Throwable,HandledCompletionExceptionResult> extends Object implements CompletionHandler<Response,ProcessingException,HandledCompletionExceptionResult>
CompletionHandler for cases
in which the task to be completed is assumed to be blocking
The onCompletion(Object, ExceptionCallback) method has a final implementation
which delegates into doOnCompletion(Object) and automatically catches any exception
and channels it through the ExceptionCallback
| Constructor and Description |
|---|
BlockingCompletionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doOnCompletion(Response result)
Provides a simplified view of the
onCompletion(Object, ExceptionCallback) contract
that assumes that the operation is blocking, which makes it unnecessary to explicitly
channel exceptions to an ExceptionCallback |
void |
onCompletion(Response result,
ExceptionCallback<HandledCompletionExceptionResult,Exception> exceptionCallback)
Delegates into
doOnCompletion(Object) and channels any thrown exceptions
through the exceptionCallback |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonFailurepublic final void onCompletion(Response result, ExceptionCallback<HandledCompletionExceptionResult,Exception> exceptionCallback)
doOnCompletion(Object) and channels any thrown exceptions
through the exceptionCallbackonCompletion in interface CompletionHandler<Response,ProcessingException extends Throwable,HandledCompletionExceptionResult>result - the result of processingexceptionCallback - handles errors processing the resultprotected abstract void doOnCompletion(Response result)
onCompletion(Object, ExceptionCallback) contract
that assumes that the operation is blocking, which makes it unnecessary to explicitly
channel exceptions to an ExceptionCallbackresult - the result of processingCopyright © 2016 MuleSoft, Inc.. All rights reserved.