public AsyncRetryExecutor withFixedBackoff(long delayMillis) { final FixedIntervalBackoff backoff = new FixedIntervalBackoff(delayMillis); return new AsyncRetryExecutor(scheduler, retryPolicy, backoff, fixedDelay); }
public QueryExecutionFactoryRetry withFixedBackoff(long delayMillis) { final FixedIntervalBackoff backoff = new FixedIntervalBackoff(delayMillis); return new QueryExecutionFactoryRetry(decoratee, retryPolicy, backoff, fixedDelay); }
public AsyncRetryExecutor withFixedBackoff(long delayMillis) { final FixedIntervalBackoff backoff = new FixedIntervalBackoff(delayMillis); return new AsyncRetryExecutor(scheduler, retryPolicy, backoff, fixedDelay); }
public AsyncRetryExecutor withFixedBackoff(long delayMillis) { final FixedIntervalBackoff backoff = new FixedIntervalBackoff(delayMillis); return new AsyncRetryExecutor(scheduler, retryPolicy, backoff, fixedDelay); }
public AsyncRetryExecutor withNoDelay() { return this.withBackoff(new FixedIntervalBackoff(0)); }
public AsyncRetryExecutor withNoDelay() { return this.withBackoff(new FixedIntervalBackoff(0)); }
public AsyncRetryExecutor withNoDelay() { return this.withBackoff(new FixedIntervalBackoff(0)); }
public QueryExecutionFactoryRetry withNoDelay() { return this.withBackoff(new FixedIntervalBackoff(0)); }
public QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, int retryCount, long retryDelayDuration, TimeUnit retryDelayTimeUnit) { this(decoratee, new RetryPolicy().withMaxRetries(retryCount), new FixedIntervalBackoff(retryDelayTimeUnit.toMillis(retryDelayDuration)), true); //TODO remove the variables which are superseded by Async-Retry API this.retryCount = retryCount; this.retryDelayInMs = retryDelayTimeUnit.toMillis(retryDelayDuration); }
public QueryExecutionFactoryRetry(QueryExecutionFactory decoratee, int retryCount, long retryDelayInMs) { this(decoratee, new RetryPolicy().withMaxRetries(retryCount), new FixedIntervalBackoff(retryDelayInMs), true); //TODO remove the variables which are superseded by Async-Retry API this.retryCount = retryCount; this.retryDelayInMs = retryDelayInMs; }