Unis.
Note about emptiness in Uni.join().first(...): If the set of Unis is empty, the set is rejected.
Joining an empty set would not propagate any event as it would not subscribe to anything.
As a result, you cannot join empty sets of Unis. An IllegalArgumentException will be thrown in this case.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassBuilder to assembleUnireferences to be joined.static classstatic interfaceTerminal interface forall(List)static classDefines how to deal with failures while joiningUnireferences withfirst(List)}.static interfaceTerminal interface forfirst(List) -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal <T> UniJoin.JoinAllStrategy<T> final <T> UniJoin.JoinAllStrategy<T> Join multipleUnireferences and emit a list of values.<T> UniJoin.Builder<T> builder()Provide a builder to assemble theUnireferences to join.final <T> UniJoin.JoinFirstStrategy<T> Join multipleUniand emit the result from the first one to emit a signal, or the first one with a value.final <T> UniJoin.JoinFirstStrategy<T> Join multipleUniand emit the result from the first one to emit a signal, or the first one with a value.
-
Field Details
-
SHARED_INSTANCE
-
-
Method Details
-
all
-
all
Join multipleUnireferences and emit a list of values.The resulting list of values is in order of the list of
Uni. What happens when any of theUniemits a failure rather than a value is specified by a subsequent call to any of the methods inUniJoin.JoinAllStrategy.The list of
Unismust not benullor containnullobjects. -
first
Join multipleUniand 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).The list of
Unismust not benull, empty, or containnullobjects. -
first
Join multipleUniand emit the result from the first one to emit a signal, or the first one with a value.What happens when any of the
Uniemits a failure rather than a value is specified by a subsequent call to any of the methods inUniJoin.JoinFirstStrategy.The list of
Unismust not benull, empty, or containnullobjects. -
builder
Provide a builder to assemble theUnireferences to join.- Type Parameters:
T- the type of theUnivalues- Returns:
- a new builder
-