public class MultiOnTerminate<T> extends Object
| Constructor and Description |
|---|
MultiOnTerminate(Multi<T> upstream) |
| Modifier and Type | Method and Description |
|---|---|
Multi<T> |
invoke(BiConsumer<Throwable,Boolean> callback)
Attaches an action that is executed when the
Multi emits a completion or a failure or when the subscriber
cancels the subscription. |
Multi<T> |
invoke(Runnable action)
Attaches an action that is executed when the
Multi emits a completion or a failure or when the subscriber
cancels the subscription. |
Multi<T> |
invokeUni(BiFunction<Throwable,Boolean,Uni<?>> mapper)
Attaches an action that is executed when the
Multi mits a completion or a failure or when the subscriber
cancels the subscription. |
public Multi<T> invoke(BiConsumer<Throwable,Boolean> callback)
Multi emits a completion or a failure or when the subscriber
cancels the subscription.callback - the consumer receiving the failure if any and a boolean indicating whether the termination
is due to a cancellation (the failure parameter would be null in this case). Must not
be null.Multipublic Multi<T> invoke(Runnable action)
Multi emits a completion or a failure or when the subscriber
cancels the subscription. Unlike invoke(BiConsumer), the callback does not receive the failure or
cancellation details.action - the action to execute when the streams completes, fails or the subscription gets cancelled. Must
not be null.MultiCopyright © 2019–2020 SmallRye. All rights reserved.