Class CollectStageFactory
- java.lang.Object
-
- io.smallrye.mutiny.streams.stages.CollectStageFactory
-
- All Implemented Interfaces:
TerminalStageFactory<org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Collect>
public class CollectStageFactory extends java.lang.Object implements TerminalStageFactory<org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Collect>
Implement theStage.Collectstage. It accumulates the result in aCollectorand redeems the last result.- Author:
- Clement Escoffier
-
-
Constructor Summary
Constructors Constructor Description CollectStageFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <I,O>
TerminalStage<I,O>create(Engine engine, org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Collect stage)Creates the instance.
-
-
-
Method Detail
-
create
public <I,O> TerminalStage<I,O> create(Engine engine, org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Collect stage)
Description copied from interface:TerminalStageFactoryCreates the instance.- Specified by:
createin interfaceTerminalStageFactory<org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Collect>- Type Parameters:
I- incoming dataO- computed result- Parameters:
engine- the reactive engine, must not benullstage- the stage, must not benull- Returns:
- the terminal stage, must not be
null
-
-