@Test public void testBackoffTime() { final long backoffTimeMS = 10_000L; final FixedDelayRestartBackoffTimeStrategy restartStrategy = new FixedDelayRestartBackoffTimeStrategy(1, backoffTimeMS); assertEquals(backoffTimeMS, restartStrategy.getBackoffTime()); }
@Override public long getBackoffTime() { return backoffTimeMS; }
FixedDelayRestartBackoffTimeStrategy implements RestartBackoffTimeStrategy { @Override public long getBackoffTime() { return backoffTimeMS; } }
FixedDelayRestartBackoffTimeStrategy implements RestartBackoffTimeStrategy { @Override public long getBackoffTime() { return backoffTimeMS; } FixedDelayRestartBackoffTimeStrategy(int maxNumberRestartAttempts, long backoffTimeMS); }
FixedDelayRestartBackoffTimeStrategy implements RestartBackoffTimeStrategy { @Override public long getBackoffTime() { return backoffTimeMS; } FixedDelayRestartBackoffTimeStrategy(int maxNumberRestartAttempts, long backoffTimeMS); @Override boolean canRestart(); @Override long getBackoffTime(); @Override void notifyFailure(Throwable cause); @Override String toString(); static FixedDelayRestartBackoffTimeStrategyFactory createFactory(final Configuration configuration); }
FixedDelayRestartBackoffTimeStrategy implements RestartBackoffTimeStrategy { @Override public long getBackoffTime() { return backoffTimeMS; } FixedDelayRestartBackoffTimeStrategy(int maxNumberRestartAttempts, long backoffTimeMS); @Override boolean canRestart(); @Override long getBackoffTime(); @Override void notifyFailure(Throwable cause); @Override String toString(); static FixedDelayRestartBackoffTimeStrategyFactory createFactory(final Configuration configuration);  }