public class UniOnItemIgnore<T> extends Object
| Constructor and Description |
|---|
UniOnItemIgnore(UniOnItem<T> onItem) |
| Modifier and Type | Method and Description |
|---|---|
Uni<T> |
andContinueWith(Supplier<? extends T> supplier)
Ignores the item fired by the current
Uni, and continue with the value produced by the given supplier. |
Uni<T> |
andContinueWith(T fallback)
Ignores the item fired by the current
Uni, and continue with a default value. |
Uni<Void> |
andContinueWithNull()
Ignores the item fired by the current
Uni, and continue with a null item. |
Uni<T> |
andFail()
Like
andFail(Throwable) but using an Exception. |
Uni<T> |
andFail(Supplier<Throwable> supplier)
|
Uni<T> |
andFail(Throwable failure)
Ignores the item fired by the current
Uni and fails with the passed failure. |
<O> Uni<O> |
andSwitchTo(Supplier<Uni<? extends O>> supplier)
|
<O> Uni<O> |
andSwitchTo(Uni<? extends O> other)
|
public Uni<T> andFail(Throwable failure)
Uni and fails with the passed failure.failure - the exception to propagateUnipublic Uni<T> andFail(Supplier<Throwable> supplier)
Uni, and fails with a failure produced using the given Supplier.supplier - the supplier to produce the failure, must not be null, must not produce nullUnipublic Uni<T> andFail()
andFail(Throwable) but using an Exception.Unipublic <O> Uni<O> andSwitchTo(Uni<? extends O> other)
O - the type of the new Uniother - the uni to continue with, must not be nullpublic <O> Uni<O> andSwitchTo(Supplier<Uni<? extends O>> supplier)
O - the type of the new Unisupplier - the supplier to produce the new Uni, must not be null, must not produce nullpublic Uni<T> andContinueWith(T fallback)
Uni, and continue with a default value.
Note that if the current Uni fails, the default value is not used.fallback - the value to continue with, can be nullUnipublic Uni<Void> andContinueWithNull()
Uni, and continue with a null item.Unipublic Uni<T> andContinueWith(Supplier<? extends T> supplier)
Uni, and continue with the value produced by the given supplier.
Note that if the current Uni fails, the supplier is not used.supplier - the default value, must not be null, can produce nullUniCopyright © 2019–2020 SmallRye. All rights reserved.