Class Plan<R>

  • Type Parameters:
    R - the result type

    public abstract class Plan<R>
    extends Object
    Represents an execution plan for join patterns.
    • Constructor Detail

      • Plan

        public Plan()
    • Method Detail

      • onErrorFrom

        protected static <T> Consumer<Throwable> onErrorFrom​(Observer<T> observer)
        Extracts a method reference to the Observer's onError method in the form of an Consumer.

        Java 8: observer::onError

        Type Parameters:
        T - the value type
        Parameters:
        observer - the Observer to use
        Returns:
        an action which calls observer's onError method.