public ExponentialBackOffPolicy withSleeper(Sleeper sleeper) { ExponentialBackOffPolicy res = newInstance(); cloneValues(res); res.setSleeper(sleeper); return res; }
protected void cloneValues(ExponentialBackOffPolicy target) { target.setInitialInterval(getInitialInterval()); target.setMaxInterval(getMaxInterval()); target.setMultiplier(getMultiplier()); target.setSleeper(sleeper); }
policy.setMaxInterval(max > min ? max : ExponentialBackOffPolicy.DEFAULT_MAX_INTERVAL); if (this.sleeper != null) { policy.setSleeper(this.sleeper);
public ExponentialBackOffPolicy withSleeper(Sleeper sleeper) { ExponentialBackOffPolicy res = newInstance(); cloneValues(res); res.setSleeper(sleeper); return res; }
protected void cloneValues(ExponentialBackOffPolicy target) { target.setInitialInterval(getInitialInterval()); target.setMaxInterval(getMaxInterval()); target.setMultiplier(getMultiplier()); target.setSleeper(sleeper); }
policy.setMaxInterval(max > min ? max : ExponentialBackOffPolicy.DEFAULT_MAX_INTERVAL); if (this.sleeper != null) { policy.setSleeper(this.sleeper);