Interface TerminalStage<I,​O>

  • All Superinterfaces:
    java.util.function.Function<Multi<I>,​java.util.concurrent.CompletionStage<O>>
    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 TerminalStage<I,​O>
    extends java.util.function.Function<Multi<I>,​java.util.concurrent.CompletionStage<O>>
    Defines a terminal stage - so a stream subscription and observation.
    Author:
    Clement Escoffier
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletionStage<O> apply​(Multi<I> multi)
      Creates the CompletionStage called when the embedded logic has completed or failed.
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Method Detail

      • apply

        java.util.concurrent.CompletionStage<O> apply​(Multi<I> multi)
        Creates the CompletionStage called when the embedded logic has completed or failed.
        Specified by:
        apply in interface java.util.function.Function<I,​O>
        Parameters:
        multi - the observed / subscribed stream
        Returns:
        the asynchronous result