@Test public void recoveryNotNeededAfterInit() { RecoveryCoordinator rc = new RecoveryCoordinator(); assertTrue(rc.isTooSoon()); }
public boolean isTooSoon() { long now = getCurrentTime(); if(now > next) { next = now + getBackoffCoefficient(); return false; } else { return true; } }
RecoveryCoordinator { public boolean isTooSoon() { long now = getCurrentTime(); if(now > next) { next = now + getBackoffCoefficient(); return false; } else { return true; } } }
RecoveryCoordinator { public boolean isTooSoon() { long now = getCurrentTime(); if(now > next) { next = now + getBackoffCoefficient(); return false; } else { return true; } } RecoveryCoordinator();  RecoveryCoordinator(long currentTime); }
RecoveryCoordinator { public boolean isTooSoon() { long now = getCurrentTime(); if(now > next) { next = now + getBackoffCoefficient(); return false; } else { return true; } } RecoveryCoordinator();  RecoveryCoordinator(long currentTime); boolean isTooSoon(); }
RecoveryCoordinator { public boolean isTooSoon() { long now = getCurrentTime(); if(now > next) { next = now + getBackoffCoefficient(); return false; } else { return true; } } RecoveryCoordinator();  RecoveryCoordinator(long currentTime); boolean isTooSoon(); final static long BACKOFF_COEFFICIENT_MIN; }