Interface RequestInterval

All Known Implementing Classes:
ExponentialBackoff

public interface RequestInterval
  • Method Details

    • getInterval

      int getInterval(int attempt)
      Parameters:
      attempt - attempt number, starting from 1
      Returns:
      interval in milliseconds
    • constant

      static RequestInterval constant(int intervalMillis)
    • exponential

      static ExponentialBackoff exponential()