Class 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 the Stage.Collect stage. It accumulates the result in a Collector and redeems the last result.
    Author:
    Clement Escoffier
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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