Interface TaskReporter

All Known Subinterfaces:
LoggingReporter, Reporter
All Known Implementing Classes:
FileReporter, Slf4jReporter

public interface TaskReporter
A TaskReporter to be informed by Actors about their actions.
  • Method Details

    • start

      default void start(Actor actor, Task task)
      Reports the start of doing the given Task.
      Parameters:
      actor - the acting Actor
      task - the started Task
    • retry

      default void retry(Actor actor, RetryableTask task, Exception cause)
      Reports the retry of the latest started RetryableTask.
      Parameters:
      actor - the acting Actor
      task - the retried Task
      cause - the cause for the retry
    • success

      default void success(Actor actor, Task task)
      Reports the successful finishing of the latest started Task.
      Parameters:
      actor - the acting Actor
      task - the successfully finished Task
    • failure

      default void failure(Actor actor, Task task, Exception cause)
      Reports the unsuccessful finishing of the latest started Task or Question.
      Parameters:
      actor - the acting Actor
      task - the unsuccessfully finished Task
      cause - the cause of the failure