Class 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 Detail

      • CollectStageFactory

        public CollectStageFactory()
    • 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: TerminalStageFactory
        Creates the instance.
        Specified by:
        create in interface TerminalStageFactory<org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Collect>
        Type Parameters:
        I - incoming data
        O - computed result
        Parameters:
        engine - the reactive engine, must not be null
        stage - the stage, must not be null
        Returns:
        the terminal stage, must not be null