public RetryCounterFactory(int maxAttempts, int sleepIntervalMillis) { this(new RetryConfig( maxAttempts, sleepIntervalMillis, -1, TimeUnit.MILLISECONDS, new ExponentialBackoffPolicy())); }