class SimpleExponentialBackoffStrategy implements BackoffStrategy {

    @Override
    public long delayBeforeNextRetry(AmazonWebServiceRequest originalRequest, AmazonClientException exception, int retriesAttempted)
    {
        long delay = (long) Math.pow(2, retriesAttempted) * SECOND_IN_MS;
        LOGGER.warn("delayBeforeNextRetryInMilliseconds={} retriesAttempted={}", delay, retriesAttempted, exception);
        return delay;
    }

}