Package io.smallrye.mutiny.groups
Class UniJoin
- java.lang.Object
-
- io.smallrye.mutiny.groups.UniJoin
-
@Experimental("New API based on observations that Uni.combine() is often used with homogeneous types, and combination often just a mapping to a collection.") public class UniJoin extends java.lang.Object
Join multipleUni
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
UniJoin.Builder<T>
Builder to assembleUni
references to be joined.static class
UniJoin.JoinAllStrategy<T>
static class
UniJoin.JoinFirstStrategy<T>
Defines how to deal with failures while joiningUni
references withfirst(List)
}.
-
Field Summary
Fields Modifier and Type Field Description static UniJoin
SHARED_INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> UniJoin.JoinAllStrategy<T>
all(Uni<? extends T>... unis)
<T> UniJoin.JoinAllStrategy<T>
all(java.util.List<Uni<? extends T>> unis)
Join multipleUni
references and emit a list of values.<T> UniJoin.Builder<T>
builder()
Provide a builder to assemble theUni
references to join.<T> UniJoin.JoinFirstStrategy<T>
first(Uni<? extends T>... unis)
Join multipleUni
and emit the result from the first one to emit a signal, or the first one with a value.<T> UniJoin.JoinFirstStrategy<T>
first(java.util.List<Uni<? extends T>> unis)
Join multipleUni
and emit the result from the first one to emit a signal, or the first one with a value.
-
-
-
Field Detail
-
SHARED_INSTANCE
public static final UniJoin SHARED_INSTANCE
-
-
Method Detail
-
all
@SafeVarargs public final <T> UniJoin.JoinAllStrategy<T> all(Uni<? extends T>... unis)
-
all
public final <T> UniJoin.JoinAllStrategy<T> all(java.util.List<Uni<? extends T>> unis)
Join multipleUni
references and emit a list of values.The resulting list of values is in order of the list of
Uni
. What happens when any of theUni
emits a failure rather than a value is specified by a subsequent call to any of the methods inUniJoin.JoinAllStrategy
.
-
first
@SafeVarargs public final <T> UniJoin.JoinFirstStrategy<T> first(Uni<? extends T>... unis)
Join multipleUni
and emit the result from the first one to emit a signal, or the first one with a value. This is a convenience delegate method forfirst(List)
.
-
first
public final <T> UniJoin.JoinFirstStrategy<T> first(java.util.List<Uni<? extends T>> unis)
Join multipleUni
and emit the result from the first one to emit a signal, or the first one with a value.What happens when any of the
Uni
emits a failure rather than a value is specified by a subsequent call to any of the methods inUniJoin.JoinFirstStrategy
.
-
builder
public <T> UniJoin.Builder<T> builder()
Provide a builder to assemble theUni
references to join.- Type Parameters:
T
- the type of theUni
values- Returns:
- a new builder
-
-