Class Slf4jReporter

    • Constructor Detail

      • Slf4jReporter

        public Slf4jReporter()
    • Method Detail

      • start

        public void start​(Actor actor,
                          Task task)
        Description copied from interface: TaskReporter
        Reports the start of doing the given Task.
        Specified by:
        start in interface TaskReporter
        Parameters:
        actor - the acting Actor
        task - the started Task
      • retry

        public <A> void retry​(Actor actor,
                              RetryableQuestion<A> question,
                              A answer)
        Description copied from interface: QuestionReporter
        Reports the retry of the latest started RetryableQuestion due to an unacceptable answer.
        Specified by:
        retry in interface QuestionReporter
        Type Parameters:
        A - the type of the given answer
        Parameters:
        actor - the acting Actor
        question - the retried question
        answer - the current unacceptable answer
      • success

        public void success​(Actor actor,
                            Task task)
        Description copied from interface: TaskReporter
        Reports the successful finishing of the latest started Task.
        Specified by:
        success in interface TaskReporter
        Parameters:
        actor - the acting Actor
        task - the successfully finished Task
      • success

        public <A> void success​(Actor actor,
                                Question<A> question,
                                A answer)
        Description copied from interface: QuestionReporter
        Reports the successful finishing of the lastest started Question.
        Specified by:
        success in interface QuestionReporter
        Type Parameters:
        A - the type of the given answer
        Parameters:
        actor - the acting Actor
        question - the successfully finished Question
        answer - the found answer
      • failure

        public void failure​(Actor actor,
                            Task task,
                            java.lang.Exception cause)
        Description copied from interface: TaskReporter
        Reports the unsuccessful finishing of the latest started Task or Question.
        Specified by:
        failure in interface TaskReporter
        Parameters:
        actor - the acting Actor
        task - the unsuccessfully finished Task
        cause - the cause of the failure
      • failure

        public void failure​(Actor actor,
                            Question<?> question,
                            java.lang.Exception cause)
        Description copied from interface: QuestionReporter
        Reports the unsuccessful finishing of the latest started Question due to an acknowledged exception.
        Specified by:
        failure in interface QuestionReporter
        Parameters:
        actor - the acting Actor
        question - the unsuccessfully finished Question
        cause - the cause of the failure
      • failure

        public <A> void failure​(Actor actor,
                                Question<A> question,
                                A answer)
        Description copied from interface: QuestionReporter
        Reports the unsuccessful finishing of the latest started RetryableQuestion due to an unacceptable answer.
        Specified by:
        failure in interface QuestionReporter
        Type Parameters:
        A - the type of the given answer
        Parameters:
        actor - the acting Actor
        question - the unsuccessfully finished Question
        answer - the found answer