程序包 | 说明 |
---|---|
reactor.core.publisher | |
reactor.util.function |
Tuples provide a type-safe way to specify multiple parameters. |
限定符和类型 | 方法和说明 |
---|---|
static <T1,T2,T3> Mono<Tuple3<T1,T2,T3>> |
Mono.zip(Mono<? extends T1> p1,
Mono<? extends T2> p2,
Mono<? extends T3> p3)
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
Tuple3 . |
static <T1,T2,T3> Flux<Tuple3<T1,T2,T3>> |
Flux.zip(org.reactivestreams.Publisher<? extends T1> source1,
org.reactivestreams.Publisher<? extends T2> source2,
org.reactivestreams.Publisher<? extends T3> source3)
Zip three sources together, that is to say wait for all the sources to emit one
element and combine these elements once into a
Tuple3 . |
static <T1,T2,T3> Mono<Tuple3<T1,T2,T3>> |
Mono.zipDelayError(Mono<? extends T1> p1,
Mono<? extends T2> p2,
Mono<? extends T3> p3)
Merge given monos into a new Mono that will be fulfilled when all of the given Mono Monos
have produced an item, aggregating their values into a
Tuple3 and delaying errors. |
限定符和类型 | 类和说明 |
---|---|
class |
Tuple4<T1,T2,T3,T4>
A tuple that holds four non-null values
|
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
|
限定符和类型 | 方法和说明 |
---|---|
<R> Tuple3<R,T2,T3> |
Tuple3.mapT1(java.util.function.Function<T1,R> mapper)
Map the 1st part (T1) of this
Tuple3 into a different value and type,
keeping the other parts. |
<R> Tuple3<T1,R,T3> |
Tuple3.mapT2(java.util.function.Function<T2,R> mapper)
Map the 2nd part (T2) of this
Tuple3 into a different value and type,
keeping the other parts. |
<R> Tuple3<T1,T2,R> |
Tuple3.mapT3(java.util.function.Function<T3,R> mapper)
Map the 3rd part (T3) of this
Tuple3 into a different value and type,
keeping the other parts. |
static <T1,T2,T3> Tuple3<T1,T2,T3> |
Tuples.of(T1 t1,
T2 t2,
T3 t3)
Create a
Tuple3 with the given objects. |
限定符和类型 | 方法和说明 |
---|---|
static <T1,T2,T3> java.util.function.Function<java.lang.Object[],Tuple3<T1,T2,T3>> |
Tuples.fn3()
A converting function from Object array to
Tuple3 |
限定符和类型 | 方法和说明 |
---|---|
static <T1,T2,T3,R> |
Tuples.fn3(java.util.function.Function<Tuple3<T1,T2,T3>,R> delegate)
A converting function from Object array to
Tuple3 to R. |