Package org.awaitility.core
Interface ConditionEvaluationListener<T>
- Type Parameters:
T- The expected return type of the condition
- All Known Implementing Classes:
ConditionEvaluationLogger
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A ConditionEvaluationListener is called each time a condition has been evaluated by Awaitility.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidbeforeEvaluation(StartEvaluationEvent<T> startEvaluationEvent) Handle the startEvaluationEvent.voidconditionEvaluated(EvaluatedCondition<T> condition) Handle an evaluated condition of a matcher.default voidexceptionIgnored(IgnoredException ignoredException) Handle ignored exception that get thrown while condition evaluation.default voidonTimeout(TimeoutEvent timeoutEvent) Handle the timeoutEvent.
-
Method Details
-
conditionEvaluated
Handle an evaluated condition of a matcher.- Parameters:
condition- The condition evaluation result containing various properties of the result of evaluated condition
-
beforeEvaluation
Handle the startEvaluationEvent. Method is default to keep the ConditionEvaluationListener backward compatible.- Parameters:
startEvaluationEvent- the event containing various properties of the condition evaluation to be started
-
onTimeout
Handle the timeoutEvent. Method is default to keep the ConditionEvaluationListener backward compatible.- Parameters:
timeoutEvent- the event containing some properties about the condition evaluation timeout
-
exceptionIgnored
Handle ignored exception that get thrown while condition evaluation. Method is default to keep the ConditionEvaluationListener backward compatible.- Parameters:
ignoredException- contains the ignored Throwable and various properties of the evaluation
-