java.lang.Object
io.smallrye.mutiny.groups.MultiOnTerminate<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(BiFunction<Throwable, Boolean, Uni<?>> mapper) Attaches an action that is executed when theMultiemits a completion or a failure or when the subscriber cancels the subscription.Attaches an action that is executed when theMultiemits a completion or a failure or when the subscriber cancels the subscription.Attaches an action that is executed when theMultiemits a completion or a failure or when the subscriber cancels the subscription.invoke(BiConsumer<Throwable, Boolean> callback) Attaches an action that is executed when theMultiemits a completion or a failure or when the subscriber cancels the subscription.
-
Constructor Details
-
MultiOnTerminate
-
-
Method Details
-
invoke
Attaches an action that is executed when theMultiemits a completion or a failure or when the subscriber cancels the subscription.- Parameters:
callback- the consumer receiving the failure if any and a boolean indicating whether the termination is due to a cancellation (the failure parameter would benullin this case). Must not benull.- Returns:
- the new
Multi
-
invoke
Attaches an action that is executed when theMultiemits a completion or a failure or when the subscriber cancels the subscription. Unlikeinvoke(BiConsumer), the callback does not receive the failure or cancellation details.- Parameters:
action- the action to execute when the streams completes, fails or the subscription gets cancelled. Must not benull.- Returns:
- the new
Multi
-
call
Attaches an action that is executed when theMultiemits a completion or a failure or when the subscriber cancels the subscription. -
call
Attaches an action that is executed when theMultiemits a completion or a failure or when the subscriber cancels the subscription.
-