public class MultiOnTerminate<T> extends Object
Constructor and Description |
---|
MultiOnTerminate(Multi<T> upstream) |
Modifier and Type | Method and Description |
---|---|
Multi<T> |
call(BiFunction<Throwable,Boolean,Uni<?>> mapper)
Attaches an action that is executed when the
Multi emits a completion or a failure or when the subscriber
cancels the subscription. |
Multi<T> |
call(Supplier<Uni<?>> supplier)
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(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)
Deprecated.
Use
call(BiFunction) |
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
.Multi
public 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
.Multi
public Multi<T> call(BiFunction<Throwable,Boolean,Uni<?>> mapper)
Multi
emits a completion or a failure or when the subscriber
cancels the subscription.public Multi<T> call(Supplier<Uni<?>> supplier)
Multi
emits a completion or a failure or when the subscriber
cancels the subscription.@Deprecated public Multi<T> invokeUni(BiFunction<Throwable,Boolean,Uni<?>> mapper)
call(BiFunction)
Multi
mits a completion or a failure or when the subscriber
cancels the subscription.Copyright © 2019–2020 SmallRye. All rights reserved.