java.lang.Object
io.smallrye.mutiny.groups.UniOnItemIgnore<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionandContinueWith(Supplier<? extends T> supplier) Ignores the item fired by the currentUni, and continue with the value produced by the given supplier.andContinueWith(T fallback) Ignores the item fired by the currentUni, and continue with a default value.Ignores the item fired by the currentUni, and continue with anullitem.andFail()LikeandFail(Throwable)but using anException.Ignores the item fired by the currentUniand fails with the passed failure.<O> Uni<O> andSwitchTo(Uni<? extends O> other) <O> Uni<O> andSwitchTo(Supplier<Uni<? extends O>> supplier)
-
Constructor Details
-
UniOnItemIgnore
-
-
Method Details
-
andFail
Ignores the item fired by the currentUniand fails with the passed failure.- Parameters:
failure- the exception to propagate- Returns:
- the new
Uni
-
andFail
Ignores the item fired by the currentUni, and fails with a failure produced using the givenSupplier.- Parameters:
supplier- the supplier to produce the failure, must not benull, must not producenull- Returns:
- the new
Uni
-
andFail
LikeandFail(Throwable)but using anException.- Returns:
- the new
Uni
-
andSwitchTo
- Type Parameters:
O- the type of the new Uni- Parameters:
other- the uni to continue with, must not benull- Returns:
- the new Uni
-
andSwitchTo
- Type Parameters:
O- the type of the new Uni- Parameters:
supplier- the supplier to produce the newUni, must not benull, must not producenull- Returns:
- the new Uni
-
andContinueWith
Ignores the item fired by the currentUni, and continue with a default value. Note that if the currentUnifails, the default value is not used.- Parameters:
fallback- the value to continue with, can benull- Returns:
- the new
Uni
-
andContinueWithNull
Ignores the item fired by the currentUni, and continue with anullitem.- Returns:
- the new
Uni
-
andContinueWith
Ignores the item fired by the currentUni, and continue with the value produced by the given supplier. Note that if the currentUnifails, the supplier is not used.- Parameters:
supplier- the default value, must not benull, can producenull- Returns:
- the new
Uni
-