Interface TerminalStageFactory<T extends org.eclipse.microprofile.reactive.streams.operators.spi.Stage>

All Known Implementing Classes:
CancelStageFactory, CollectStageFactory, FindFirstStageFactory, SubscriberStageFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TerminalStageFactory<T extends org.eclipse.microprofile.reactive.streams.operators.spi.Stage>
Factory to create TerminalStage instances.
Author:
Clement Escoffier
  • Method Summary

    Modifier and Type
    Method
    Description
    <I, O> TerminalStage<I,O>
    create(Engine engine, T stage)
    Creates the instance.
  • Method Details

    • create

      <I, O> TerminalStage<I,O> create(Engine engine, T stage)
      Creates the instance.
      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