Modifier and Type | Method and Description |
---|---|
MultiFlatten<I,O> |
collectFailures()
Instructs the flatMap operation to consume all the streams returned by the mapper before
propagating a failure if any of the stream has produced a failure.
|
Multi<O> |
concatenate()
|
Multi<O> |
merge()
|
Multi<O> |
merge(int concurrency)
|
MultiFlatten<I,O> |
withRequests(int req)
Configures the number the items requested to the streams produced by the mapper.
|
public MultiFlatten<I,O> collectFailures()
If more than one failure is collected, the propagated failure is a
CompositeException
.
MultiFlatten
public MultiFlatten<I,O> withRequests(int req)
req
- the request, must be strictly positiveMultiFlatten
public Multi<O> merge()
Multi
containing the items from Publisher
produced by the mapper
for each
item emitted by this Multi
.
The operators behaves as follows:
flatMap
operation.public Multi<O> merge(int concurrency)
Multi
containing the items from Publisher
produced by the mapper
for each
item emitted by this Multi
.
The operators behaves as follows:
Multi
, the mapper is called and produces a Publisher
(potentially a Multi
). The mapper must not return null
Publisher
are then merged in the
produced Multi
. The returned object lets you configure the flattening process.This method allows configuring the concurrency, i.e. the maximum number of in-flight/subscribed inner streams
concurrency
- the concurrencyflatMap
operation.Copyright © 2019–2020 SmallRye. All rights reserved.