| Package | Description |
|---|---|
| org.mule.runtime.api.component.execution |
| Modifier and Type | Method and Description |
|---|---|
static <T> CompletableCallback<T> |
CompletableCallback.always(Runnable runnable)
Returns a new callback which always executes the given
runnable upon completion, regardless of said completion
being normal or exceptional. |
default CompletableCallback<T> |
CompletableCallback.andThen(CompletableCallback<T> afterCallback)
Returns a new composed callback which propagates the completion signal to the given
afterCallback AFTER this
callback has finished executing its complete(Object) or error(Throwable) methods. |
default CompletableCallback<T> |
CompletableCallback.andThen(Consumer<T> consumer)
Returns a new composed callback which propagates the normal completion signal to the given
consumer AFTER
this callback has finished executing its complete(Object) method. |
default CompletableCallback<T> |
CompletableCallback.before(CompletableCallback<T> beforeCallback)
Returns a new composed callback which propagates the completion signal to the given
beforeCallback BEFORE
the complete(Object) or error(Throwable) methods are executed on this callback. |
default CompletableCallback<T> |
CompletableCallback.before(Consumer<T> consumer)
Returns a new composed callback which propagates the normal completion signal to the given
beforeCallback BEFORE
the complete(Object) method is executed on this callback. |
static <T> CompletableCallback<T> |
CompletableCallback.empty()
Returns an empty callback which does nothing
|
default CompletableCallback<T> |
CompletableCallback.finallyAfter(Runnable runnable)
Returns a new composed callback which always invokes the given
runnable AFTER this callback is completed
either normally or exceptionally. |
default CompletableCallback<T> |
CompletableCallback.finallyBefore(Runnable runnable)
Returns a new composed callback which always invokes the given
runnable BEFORE this callback is completed
either normally or exceptionally. |
| Modifier and Type | Method and Description |
|---|---|
default CompletableCallback<T> |
CompletableCallback.andThen(CompletableCallback<T> afterCallback)
Returns a new composed callback which propagates the completion signal to the given
afterCallback AFTER this
callback has finished executing its complete(Object) or error(Throwable) methods. |
default CompletableCallback<T> |
CompletableCallback.before(CompletableCallback<T> beforeCallback)
Returns a new composed callback which propagates the completion signal to the given
beforeCallback BEFORE
the complete(Object) or error(Throwable) methods are executed on this callback. |
Copyright © 2021 MuleSoft, Inc.. All rights reserved.