@Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }

      ExponentialPolicy other = (ExponentialPolicy) o;
      return maxAttempts == other.maxAttempts && initialWaitTimeMs == other.initialWaitTimeMs;
    }
Constructor for {@link ExponentialPolicy}.
@param maxAttempts The maximum attempts.
@param initialWaitTimeMs The initial wait time in milliseconds, wait time will grow exponentially with it.
ambry-commons/src/main/java/com/github/ambry/commons/RetryPolicies.java