public AsyncRetryExecutor withRetryPolicy(RetryPolicy retryPolicy) {
return new AsyncRetryExecutor(scheduler, retryPolicy, backoff, fixedDelay);
}
public AsyncRetryExecutor withExponentialBackoff(long initialDelayMillis, double multiplier) {
final ExponentialDelayBackoff backoff = new ExponentialDelayBackoff(initialDelayMillis, multiplier);
return new AsyncRetryExecutor(scheduler, retryPolicy, backoff, fixedDelay);
}