public class MultiItemCombine4<T1,T2,T3,T4> extends MultiItemCombineIterable
| Constructor and Description |
|---|
MultiItemCombine4(Iterable<org.reactivestreams.Publisher<?>> iterable) |
| Modifier and Type | Method and Description |
|---|---|
Multi<Tuple4<T1,T2,T3,T4>> |
asTuple() |
MultiItemCombine4<T1,T2,T3,T4> |
collectFailures()
Configures the combination to wait until all the
streams to fire a completion or failure event
before propagating a failure downstream. |
MultiItemCombine4<T1,T2,T3,T4> |
latestItems()
By default, the combination logic is called with one item of each observed stream.
|
<O> Multi<O> |
using(Functions.Function4<T1,T2,T3,T4,O> combinator)
Creates the resulting
Multi. |
usingpublic MultiItemCombine4(Iterable<org.reactivestreams.Publisher<?>> iterable)
public MultiItemCombine4<T1,T2,T3,T4> collectFailures()
streams to fire a completion or failure event
before propagating a failure downstream.collectFailures in class MultiItemCombineIterableMultiItemCombine4public MultiItemCombine4<T1,T2,T3,T4> latestItems()
With this method, you can change this behavior and call the combination logic every time one of one of the observed streams emit an item. It would call the combination logic with this new item and the latest items emitted by the other streams. It wait until all the streams have emitted at least an item before calling the combination logic.
If one of the stream completes before having emitted a value, the produced streams also completes without emitting a value.
latestItems in class MultiItemCombineIterableMultiItemCombine4public Multi<Tuple4<T1,T2,T3,T4>> asTuple()
Multi. The items are combined into a Tuple4<T1, T2, T3, T4>.public <O> Multi<O> using(Functions.Function4<T1,T2,T3,T4,O> combinator)
Multi. The items are combined using the given combinator function.O - the type of itemcombinator - the combinator function, must not be nullMulti.Copyright © 2019–2020 SmallRye. All rights reserved.