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 Object
implements TerminalStageFactory<org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Collect>
Implement the
Stage.Collect stage. It accumulates the result in a Collector and
redeems the last result.- Author:
- Clement Escoffier
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CollectStageFactory
public CollectStageFactory()
-
-
Method Details
-
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
-