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.
@FunctionalInterface public interface ConditionEvaluationListener<T>A ConditionEvaluationListener is called each time a condition has been evaluated by Awaitility.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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 Detail
-
conditionEvaluated
void conditionEvaluated(EvaluatedCondition<T> condition)
Handle an evaluated condition of a matcher.- Parameters:
condition- The condition evaluation result containing various properties of the result of evaluated condition
-
beforeEvaluation
default void beforeEvaluation(StartEvaluationEvent<T> startEvaluationEvent)
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
default void onTimeout(TimeoutEvent timeoutEvent)
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
default void exceptionIgnored(IgnoredException ignoredException)
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
-
-