R - the generic type of the result objectspublic abstract class BlockingCompletionHandler<R,E extends Throwable> extends Object implements CompletionHandler<R,E>
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(R 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(R result,
ExceptionCallback<Throwable> 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(R result, ExceptionCallback<Throwable> exceptionCallback)
doOnCompletion(Object) and channels any thrown exceptions
through the exceptionCallbackonCompletion in interface CompletionHandler<R,E extends Throwable>result - the result of processingexceptionCallback - handles errors processing the resultprotected abstract void doOnCompletion(R 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 © 2003–2017 MuleSoft, Inc.. All rights reserved.