Package org.awaitility.constraint
Interface WaitConstraint
-
- All Known Implementing Classes:
AtMostWaitConstraint,HoldsPredicateWaitConstraint,IntervalWaitConstraint
public interface WaitConstraintInterface that defines the wait strategy. Max wait time stands for upper bound of condition evaluation duration. Min wait time stands for lower bound condition evaluation duration. In case operation is executed before getMinWaitTime the exception is thrown indicating that condition shouldn't be executed earlier than specified amount of time. Also operation is not allowed to be executed longer than getMaxWaitTime.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.DurationgetHoldPredicateTime()java.time.DurationgetMaxWaitTime()java.time.DurationgetMinWaitTime()WaitConstraintwithHoldPredicateTime(java.time.Duration holdConditionTime)WaitConstraintwithMaxWaitTime(java.time.Duration maxWaitTime)WaitConstraintwithMinWaitTime(java.time.Duration minWaitTime)
-
-
-
Method Detail
-
getMaxWaitTime
java.time.Duration getMaxWaitTime()
-
getMinWaitTime
java.time.Duration getMinWaitTime()
-
getHoldPredicateTime
java.time.Duration getHoldPredicateTime()
-
withMinWaitTime
WaitConstraint withMinWaitTime(java.time.Duration minWaitTime)
-
withMaxWaitTime
WaitConstraint withMaxWaitTime(java.time.Duration maxWaitTime)
-
withHoldPredicateTime
WaitConstraint withHoldPredicateTime(java.time.Duration holdConditionTime)
-
-