Interface QuestionReporter
-
- All Known Subinterfaces:
LoggingReporter
,Reporter
- All Known Implementing Classes:
FileReporter
,Slf4jReporter
public interface QuestionReporter
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
failure(Actor actor, Question<?> question, java.lang.Exception cause)
Reports the unsuccessful finishing of the latest startedQuestion
due to an acknowledged exception.default <A> void
failure(Actor actor, Question<A> question, A answer)
Reports the unsuccessful finishing of the latest startedRetryableQuestion
due to an unacceptable answer.default void
retry(Actor actor, RetryableQuestion<?> question, java.lang.Exception cause)
Reports the retry of the latest startedRetryableQuestion
due to an ignored exception.default <A> void
retry(Actor actor, RetryableQuestion<A> question, A answer)
Reports the retry of the latest startedRetryableQuestion
due to an unacceptable answer.default void
start(Actor actor, Question<?> question)
Reports the start of checking the givenQuestion
.default <A> void
success(Actor actor, Question<A> question, A answer)
Reports the successful finishing of the lastest startedQuestion
.
-
-
-
Method Detail
-
start
default void start(Actor actor, Question<?> question)
Reports the start of checking the givenQuestion
.
-
retry
default void retry(Actor actor, RetryableQuestion<?> question, java.lang.Exception cause)
Reports the retry of the latest startedRetryableQuestion
due to an ignored exception.- Parameters:
actor
- the actingActor
question
- the retried questioncause
- the cause for the retry
-
retry
default <A> void retry(Actor actor, RetryableQuestion<A> question, A answer)
Reports the retry of the latest startedRetryableQuestion
due to an unacceptable answer.- Type Parameters:
A
- the type of the given answer- Parameters:
actor
- the actingActor
question
- the retried questionanswer
- the current unacceptable answer
-
success
default <A> void success(Actor actor, Question<A> question, A answer)
Reports the successful finishing of the lastest startedQuestion
.
-
failure
default void failure(Actor actor, Question<?> question, java.lang.Exception cause)
Reports the unsuccessful finishing of the latest startedQuestion
due to an acknowledged exception.
-
failure
default <A> void failure(Actor actor, Question<A> question, A answer)
Reports the unsuccessful finishing of the latest startedRetryableQuestion
due to an unacceptable answer.
-
-