Interface Retry.NeedsMaxWait

  • Enclosing class:
    Retry

    public static interface Retry.NeedsMaxWait
    • Method Detail

      • maxWait

        Retry.NeedsBackOffFactor maxWait​(long duration,
                                         TimeUnit unit)
        Parameters:
        duration - the maximum amount of time to which the waiting period between retries can be incremented; input is converted to milliseconds, rounded down to the nearest
        Returns:
        this builder with a maximum time limit set