public class MultiMerge extends Object
| Modifier and Type | Method and Description |
|---|---|
MultiMerge |
collectFailures()
Indicates that the merge process should not propagate the first receive failure, but collect them until
all the items from all (non-failing) participants have been emitted.
|
<T> Multi<T> |
streams(Iterable<org.reactivestreams.Publisher<T>> iterable)
|
<T> Multi<T> |
streams(org.reactivestreams.Publisher<T>... publishers)
|
MultiMerge |
withConcurrency(int concurrency)
Indicates that the merge process can consume up to
concurrency streams in parallel. |
MultiMerge |
withRequests(int requests)
Indicates that the merge process should consume the different streams using the given
request. |
@SafeVarargs public final <T> Multi<T> streams(org.reactivestreams.Publisher<T>... publishers)
public <T> Multi<T> streams(Iterable<org.reactivestreams.Publisher<T>> iterable)
T - the type of itemiterable - the published, must not be empty, must not contain null, must not be nullMulti emitting the items from the given set of Publisherpublic MultiMerge collectFailures()
CompositeException if several failures have been received).MultiMerge collecting failurespublic MultiMerge withRequests(int requests)
request.requests - the requestMultiMerge configured with the given requestspublic MultiMerge withConcurrency(int concurrency)
concurrency streams in parallel. Items emitted by these
streams may be interleaved in the resulting stream.concurrency - the concurrencyMultiMerge configured with the given concurrencyCopyright © 2019–2020 SmallRye. All rights reserved.