Interface ProcessingStage<I,​O>

  • Type Parameters:
    I - type of the received items
    O - type of the emitted items
    All Superinterfaces:
    java.util.function.Function<Multi<I>,​Multi<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 ProcessingStage<I,​O>
    extends java.util.function.Function<Multi<I>,​Multi<O>>
    Defines a processing stage - so a stream transformation.
    Author:
    Clement Escoffier
    • Method Detail

      • apply

        Multi<O> apply​(Multi<I> source)
        Adapts the streams.
        Specified by:
        apply in interface java.util.function.Function<I,​O>
        Parameters:
        source - the input stream, must not be null
        Returns:
        the adapted stream, must not be null