java.lang.Object
io.smallrye.mutiny.groups.MultiOnItemGather<I>
- Type Parameters:
I- the type of the items emitted by the upstreamMulti
@Experimental("This API is still being designed and may change in the future")
public class MultiOnItemGather<I>
extends Object
A builder to gather items emitted by a
Multi into an accumulator.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe second step in the builder to gather items emitted by aMultiinto an accumulator.static classThe last step in the builder to gather items emitted by aMultiinto an accumulator.static classThe first step in the builder to gather items emitted by aMultiinto an accumulator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<ACC> MultiOnItemGather.InitialAccumulatorStep<I, ACC> Specifies the initial accumulator supplier.
-
Constructor Details
-
MultiOnItemGather
-
-
Method Details
-
into
@CheckReturnValue public <ACC> MultiOnItemGather.InitialAccumulatorStep<I,ACC> into(Supplier<ACC> initialAccumulatorSupplier) Specifies the initial accumulator supplier.The accumulator is used to accumulate the items emitted by the upstream.
- Type Parameters:
ACC- the type of the accumulator- Parameters:
initialAccumulatorSupplier- the initial accumulator supplier, the returned value cannot benull- Returns:
- the next step in the builder
-