Interface QuestionReporter

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

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

    • start

      default void start(Actor actor, Question<?> question)
      Reports the start of checking the given Question.
      Parameters:
      actor - the acting Actor
      question - the started Question
    • retry

      default void retry(Actor actor, RetryableQuestion<?> question, Exception cause)
      Reports the retry of the latest started RetryableQuestion due to an ignored exception.
      Parameters:
      actor - the acting Actor
      question - the retried question
      cause - the cause for the retry
    • retry

      default <A> void retry(Actor actor, RetryableQuestion<A> question, A answer)
      Reports the retry of the latest started RetryableQuestion due to an unacceptable answer.
      Type Parameters:
      A - the type of the given answer
      Parameters:
      actor - the acting Actor
      question - the retried question
      answer - the current unacceptable answer
    • success

      default <A> void success(Actor actor, Question<A> question, A answer)
      Reports the successful finishing of the lastest started Question.
      Type Parameters:
      A - the type of the given answer
      Parameters:
      actor - the acting Actor
      question - the successfully finished Question
      answer - the found answer
    • failure

      default void failure(Actor actor, Question<?> question, Exception cause)
      Reports the unsuccessful finishing of the latest started Question due to an acknowledged exception.
      Parameters:
      actor - the acting Actor
      question - the unsuccessfully finished Question
      cause - the cause of the failure
    • failure

      default <A> void failure(Actor actor, Question<A> question, A answer)
      Reports the unsuccessful finishing of the latest started RetryableQuestion due to an unacceptable answer.
      Type Parameters:
      A - the type of the given answer
      Parameters:
      actor - the acting Actor
      question - the unsuccessfully finished Question
      answer - the found answer