public class MultiItemCombineIterable extends Object
| Constructor and Description |
|---|
MultiItemCombineIterable(Iterable<? extends org.reactivestreams.Publisher<?>> iterable) |
| Modifier and Type | Method and Description |
|---|---|
MultiItemCombineIterable |
collectFailures()
Configures the combination to wait until all the
streams to fire a completion or failure event
before propagating a failure downstream. |
MultiItemCombineIterable |
latestItems()
By default, the combination logic is called with one item of each observed stream.
|
<O> Multi<O> |
using(Function<List<?>,O> combinator)
Sets the combination logic as parameter and returns a
Multi associating the items from the observed
stream using this combinator. |
public MultiItemCombineIterable(Iterable<? extends org.reactivestreams.Publisher<?>> iterable)
public MultiItemCombineIterable collectFailures()
streams to fire a completion or failure event
before propagating a failure downstream.MultiItemCombineIterablepublic MultiItemCombineIterable 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.
MultiItemCombineIterableCopyright © 2019–2020 SmallRye. All rights reserved.