public class MultiOnFailure<T> extends Object
| Constructor and Description |
|---|
MultiOnFailure(Multi<T> upstream,
Predicate<? super Throwable> predicate) |
| Modifier and Type | Method and Description |
|---|---|
Multi<T> |
apply(Function<? super Throwable,? extends Throwable> mapper)
|
Multi<T> |
invoke(Consumer<Throwable> callback)
|
Multi<T> |
recoverWithCompletion() |
Multi<T> |
recoverWithItem(Function<? super Throwable,? extends T> fallback) |
Multi<T> |
recoverWithItem(Supplier<T> supplier) |
Multi<T> |
recoverWithItem(T fallback) |
Multi<T> |
recoverWithMulti(Function<? super Throwable,? extends Multi<? extends T>> fallback) |
Multi<T> |
recoverWithMulti(Multi<? extends T> fallback) |
Multi<T> |
recoverWithMulti(Supplier<? extends Multi<? extends T>> supplier) |
MultiRetry<T> |
retry() |
public Multi<T> invoke(Consumer<Throwable> callback)
callback - the callback, must not be nullMultipublic Multi<T> apply(Function<? super Throwable,? extends Throwable> mapper)
Multi invoking the given function when the current Multi propagates a failure. The
function can transform the received failure into another exception that will be fired as failure downstream.mapper - the mapper function, must not be null, must not return nullMultipublic Multi<T> recoverWithMulti(Function<? super Throwable,? extends Multi<? extends T>> fallback)
public MultiRetry<T> retry()
Copyright © 2019–2020 SmallRye. All rights reserved.