Interface Stage.Filter

  • All Superinterfaces:
    Enclosing interface:

    public static interface Stage.Filter
    extends Stage
    A filter stage.

    The given predicate must be invoked on each element consumed. If it returns true, the element must be emitted, otherwise, it must be dropped.

    Any RuntimeException thrown by the predicate must be propagated downstream as an error, and upstream must be cancelled. Any subsequent elements received from upstream before the cancellation signal is handled must be dropped.

    • Method Detail

      • getPredicate

        java.util.function.Predicate<?> getPredicate()
        The predicate.
        The predicate.