Interface RetriableDsl<R extends MeasurableDsl,​T>

    • Method Detail

      • retryIf

        R retryIf​(java.util.function.Predicate<T> predicate,
                  int numOfRetries)
        Retries, if the predicate is true and the current attempt less then numOfRetries.

        Parameters:
        predicate - If predicate turns true, then the spec will be repeated.
        numOfRetries - Number of retries.
        Returns:
        The spec instance which is to be repeated.