@Test public void testPositiveSleepTime() { RetryNTimes retry = new RetryNTimes(1, 123, TimeUnit.MILLISECONDS); assertEquals(123, retry.getSleepTimeMs(1, 0)); assertEquals(123, retry.getSleepTimeMs(1, 1)); }
@Override protected long getSleepTimeMs(int numAttempts, long elapsedTimeMs) { return _sleepTimeBetweenAttemptsMillis; }
RetryNTimes extends SleepingRetry { @Override protected long getSleepTimeMs(int numAttempts, long elapsedTimeMs) { return _sleepTimeBetweenAttemptsMillis; } }
RetryNTimes extends SleepingRetry { @Override protected long getSleepTimeMs(int numAttempts, long elapsedTimeMs) { return _sleepTimeBetweenAttemptsMillis; } RetryNTimes(int maxNumAttempts);  RetryNTimes(int maxNumAttempts, long sleepTimeBetweenRetries, TimeUnit unit); }
RetryNTimes extends SleepingRetry { @Override protected long getSleepTimeMs(int numAttempts, long elapsedTimeMs) { return _sleepTimeBetweenAttemptsMillis; } RetryNTimes(int maxNumAttempts);  RetryNTimes(int maxNumAttempts, long sleepTimeBetweenRetries, TimeUnit unit);  }
RetryNTimes extends SleepingRetry { @Override protected long getSleepTimeMs(int numAttempts, long elapsedTimeMs) { return _sleepTimeBetweenAttemptsMillis; } RetryNTimes(int maxNumAttempts);  RetryNTimes(int maxNumAttempts, long sleepTimeBetweenRetries, TimeUnit unit);   }