Package | Description |
---|---|
reactor.core.publisher | |
reactor.util.function |
Tuples provide a type-safe way to specify multiple parameters. |
Modifier and Type | Method and Description |
---|---|
static <T1,T2,T3,T4> |
Mono.zip(Mono<? extends T1> p1,
Mono<? extends T2> p2,
Mono<? extends T3> p3,
Mono<? extends T4> p4)
Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a
Tuple4 . |
static <T1,T2,T3,T4> |
Flux.zip(Publisher<? extends T1> source1,
Publisher<? extends T2> source2,
Publisher<? extends T3> source3,
Publisher<? extends T4> source4)
Zip four sources together, that is to say wait for all the sources to emit one
element and combine these elements once into a
Tuple4 . |
static <T1,T2,T3,T4> |
Mono.zipDelayError(Mono<? extends T1> p1,
Mono<? extends T2> p2,
Mono<? extends T3> p3,
Mono<? extends T4> p4)
Merge given monos into a new Mono that will be fulfilled when all of the given Monos
have produced an item, aggregating their values into a
Tuple4 and delaying errors. |
Modifier and Type | Class and Description |
---|---|
class |
Tuple5<T1,T2,T3,T4,T5>
A tuple that holds five non-null values
|
class |
Tuple6<T1,T2,T3,T4,T5,T6>
A tuple that holds six values
|
class |
Tuple7<T1,T2,T3,T4,T5,T6,T7>
A tuple that holds seven non-null values
|
class |
Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>
A tuple that holds eight values
|
Modifier and Type | Method and Description |
---|---|
<R> Tuple4<R,T2,T3,T4> |
Tuple4.mapT1(Function<T1,R> mapper)
Map the 1st part (T1) of this
Tuple4 into a different value and type,
keeping the other parts. |
<R> Tuple4<T1,R,T3,T4> |
Tuple4.mapT2(Function<T2,R> mapper)
Map the 2nd part (T2) of this
Tuple4 into a different value and type,
keeping the other parts. |
<R> Tuple4<T1,T2,R,T4> |
Tuple4.mapT3(Function<T3,R> mapper)
Map the 3rd part (T3) of this
Tuple4 into a different value and type,
keeping the other parts. |
<R> Tuple4<T1,T2,T3,R> |
Tuple4.mapT4(Function<T4,R> mapper)
Map the 4th part (T4) of this
Tuple4 into a different value and type,
keeping the other parts. |
static <T1,T2,T3,T4> |
Tuples.of(T1 t1,
T2 t2,
T3 t3,
T4 t4)
Create a
Tuple4 with the given objects. |
Modifier and Type | Method and Description |
---|---|
static <T1,T2,T3,T4> |
Tuples.fn4()
A converting function from Object array to
Tuple4 |
Modifier and Type | Method and Description |
---|---|
static <T1,T2,T3,T4,R> |
Tuples.fn4(Function<Tuple4<T1,T2,T3,T4>,R> delegate)
A converting function from Object array to
Tuple4 to R. |