public class MultiItemCombine3<T1,T2,T3> extends MultiItemCombineIterable
| Constructor and Description |
|---|
MultiItemCombine3(Iterable<org.reactivestreams.Publisher<?>> iterable) |
| Modifier and Type | Method and Description |
|---|---|
Multi<Tuple3<T1,T2,T3>> |
asTuple() |
MultiItemCombine3<T1,T2,T3> |
collectFailures()
Configures the combination to wait until all the
streams to fire a completion or failure event
before propagating a failure downstream. |
MultiItemCombine3<T1,T2,T3> |
latestItems()
By default, the combination logic is called with one item of each observed stream.
|
<O> Multi<O> |
using(Functions.Function3<T1,T2,T3,O> combinator)
Creates the resulting
Multi. |
usingpublic MultiItemCombine3(Iterable<org.reactivestreams.Publisher<?>> iterable)
public MultiItemCombine3<T1,T2,T3> collectFailures()
streams to fire a completion or failure event
before propagating a failure downstream.collectFailures in class MultiItemCombineIterableMultiItemCombine3public MultiItemCombine3<T1,T2,T3> 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 MultiItemCombineIterableMultiItemCombine3public Multi<Tuple3<T1,T2,T3>> asTuple()
Multi. The items are combined into a Tuple3<T1, T2, T3>.Copyright © 2019–2020 SmallRye. All rights reserved.