Package io.smallrye.mutiny.groups
Class MultiCreateBy
- java.lang.Object
-
- io.smallrye.mutiny.groups.MultiCreateBy
-
public class MultiCreateBy extends java.lang.ObjectAllows the creation of instances ofMultiby merging/combining/concatenating multiple upstreams.
-
-
Field Summary
Fields Modifier and Type Field Description static MultiCreateByINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiItemCombinationcombining()MultiConcatconcatenating()MultiMergemerging()MultiRepetitionrepeating()
-
-
-
Field Detail
-
INSTANCE
public static final MultiCreateBy INSTANCE
-
-
Method Detail
-
concatenating
public MultiConcat concatenating()
Creates a new instance ofMultiby concatenating severalMultiorPublisherinstances.The concatenation reads the streams in order and emits the items in order.
- Returns:
- the object to configure the concatenation
-
merging
public MultiMerge merging()
Creates a new instance ofMultiby merging severalMultiorPublisherinstances.The concatenation reads the streams concurrently and emits the items as they come.
- Returns:
- the object to configure the merge
-
combining
public MultiItemCombination combining()
Creates a new instance ofMultiby associating / combining the items from different streams (MultiorPublisher).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
public MultiRepetition repeating()
- Returns:
- the object to configure the repetition
-
-