Class CancelStageFactory

  • All Implemented Interfaces:
    TerminalStageFactory<org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Cancel>

    public class CancelStageFactory
    extends Object
    implements TerminalStageFactory<org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Cancel>
    Implementation of Stage.Cancel. It subscribes and disposes the stream immediately.
    Author:
    Clement Escoffier
    • Constructor Detail

      • CancelStageFactory

        public CancelStageFactory()
    • Method Detail

      • create

        public <I,​O> TerminalStage<I,​O> create​(Engine engine,
                                                           org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Cancel stage)
        Description copied from interface: TerminalStageFactory
        Creates the instance.
        Specified by:
        create in interface TerminalStageFactory<org.eclipse.microprofile.reactive.streams.operators.spi.Stage.Cancel>
        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