Package org.awaitility.constraint
Class IntervalWaitConstraint
- java.lang.Object
-
- org.awaitility.constraint.AtMostWaitConstraint
-
- org.awaitility.constraint.IntervalWaitConstraint
-
- All Implemented Interfaces:
WaitConstraint
- Direct Known Subclasses:
HoldsPredicateWaitConstraint
public class IntervalWaitConstraint extends AtMostWaitConstraint
-
-
Field Summary
Fields Modifier and Type Field Description private java.time.DurationatLeastConstraint-
Fields inherited from class org.awaitility.constraint.AtMostWaitConstraint
FOREVER, TEN_SECONDS
-
-
Constructor Summary
Constructors Constructor Description IntervalWaitConstraint(java.time.Duration atLeastConstraint, java.time.Duration atMostDuration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static IntervalWaitConstraintbetween(java.time.Duration notBeforeThan, java.time.Duration notLaterThan)java.time.DurationgetMinWaitTime()WaitConstraintwithMaxWaitTime(java.time.Duration maxWaitTime)-
Methods inherited from class org.awaitility.constraint.AtMostWaitConstraint
getHoldPredicateTime, getMaxWaitTime, withHoldPredicateTime, withMinWaitTime
-
-
-
-
Method Detail
-
between
private static IntervalWaitConstraint between(java.time.Duration notBeforeThan, java.time.Duration notLaterThan)
-
getMinWaitTime
public java.time.Duration getMinWaitTime()
- Specified by:
getMinWaitTimein interfaceWaitConstraint- Overrides:
getMinWaitTimein classAtMostWaitConstraint
-
withMaxWaitTime
public WaitConstraint withMaxWaitTime(java.time.Duration maxWaitTime)
- Specified by:
withMaxWaitTimein interfaceWaitConstraint- Overrides:
withMaxWaitTimein classAtMostWaitConstraint
-
-