Interface ReactorListener

    • Method Detail

      • onTaskStarted

        default void onTaskStarted​(Task t)
        Notifies that the execution of the task is about to start.
      • onTaskCompleted

        default void onTaskCompleted​(Task t)
        Notifies that the execution of the task is about to finish. This happens on the same thread that called onTaskStarted(Task).
      • onTaskFailed

        default void onTaskFailed​(Task t,
                                  Throwable err,
                                  boolean fatal)
        Notifies that the execution of the task have failed with an exception.
        Parameters:
        err - Either Error or Exception, indicating the cause of the failure.
        fatal - If true, this problem is fatal, and the reactor is going to terminate. If false, the reactor will continue executing after this failure.
      • onAttained

        default void onAttained​(Milestone milestone)
        Indicates that the following milestone was attained.