Interface FlowSuccessful

  • All Superinterfaces:
    FlowCallback
    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 FlowSuccessful
    extends FlowCallback
    FlowCallback that propagates failures and only handles success.
    Author:
    Daniel Sagenschneider
    • Method Detail

      • run

        default void run​(java.lang.Throwable escalation)
                  throws java.lang.Throwable
        Default implementation of FlowCallback to escalate and then invoke successful handling.
        Specified by:
        run in interface FlowCallback
        Parameters:
        escalation - Possible Throwable from the Flow. null indicates all Escalation instances handled within Flow.
        Throws:
        java.lang.Throwable - Escalation within the callback logic.
      • run

        void run()
          throws java.lang.Throwable
        Invoked on completion of successful Flow.
        Throws:
        java.lang.Throwable - Possible failure in handling completion.