Class RetryPolicy.FixedRetryPolicy

    • Method Detail

      • timeoutFor

        public long timeoutFor​(int attempt)
        Specified by:
        timeoutFor in interface RetryPolicy
        Returns:
        timeout in millis. Zero or negative means no timeout.
      • retryAfter

        public long retryAfter​(int attempt,
                               Exception exception)
        Specified by:
        retryAfter in interface RetryPolicy
        Returns:
        delay in millis before the next attempt. Negative means no retry, zero means no delay.