java.lang.Object
io.smallrye.mutiny.groups.MultiCreateBy
Allows the creation of instances of
Multi by merging/combining/concatenating multiple upstreams.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionCreates a new instance ofMultiby associating / combining the items from different streams (MultiorFlow.Publisher).merging()
-
Field Details
-
INSTANCE
-
-
Method Details
-
concatenating
Creates a new instance ofMultiby concatenating severalMultiorFlow.Publisherinstances.The concatenation reads the streams in order and emits the items in order.
- Returns:
- the object to configure the concatenation
-
merging
Creates a new instance ofMultiby merging severalMultiorFlow.Publisherinstances.The concatenation reads the streams concurrently and emits the items as they come.
- Returns:
- the object to configure the merge
-
combining
Creates a new instance ofMultiby associating / combining the items from different streams (MultiorFlow.Publisher).The resulting
Multican:- collects an item of every observed streams and combines them. If one of the observed stream sends the completion event, the event is propagated in the produced stream, and no other combination are emitted.
- as soon as on of the observed stream emits an item, it combines it with the latest items emitted by other stream. the completion event is sent when all the observed streams have completed (with a completion event).
The combination also allows to collect the failures and propagates a failure when all observed streams have completed (or failed) instead of propagating the failure immediately.
- Returns:
- the object to configure the combination
-
repeating
- Returns:
- the object to configure the repetition
-
replaying
Creates a newMultithat replays elements from anotherMultito any number of current and late subscribers.- Returns:
- the object to configure the replay behavior
-