class ExponentialBackoffStrategy implements BackoffStrategy {

  @Override
  public long delayBeforeNextRetry(
      AmazonWebServiceRequest originalRequest,
      AmazonClientException exception,
      int retriesAttempted) {
    long backoffDelay = retriesAttempted * errorRetryDelay;
    LOG.debug("Exception caught during upload, retries attempted = {}, will retry in {} ms", retriesAttempted,
        backoffDelay, exception);
    return backoffDelay;
  }

    ExponentialBackoffStrategy(long errorRetryDelay);

}