Interface WaitConstraint

  • All Known Implementing Classes:
    AtMostWaitConstraint, HoldsPredicateWaitConstraint, IntervalWaitConstraint

    public interface WaitConstraint
    Interface 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 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)