@Test public void backoff_twiceForEquivalentState_noChange() { AtomicBackoff backoff = new AtomicBackoff("test", 8); AtomicBackoff.State state1 = backoff.getState(); AtomicBackoff.State state2 = backoff.getState(); state1.backoff(); state2.backoff(); assertEquals(16, backoff.getState().get()); }
public State getState() { return new State(value.get()); }
AtomicBackoff { public State getState() { return new State(value.get()); } }
AtomicBackoff { public State getState() { return new State(value.get()); } AtomicBackoff(String name, long value); }
AtomicBackoff { public State getState() { return new State(value.get()); } AtomicBackoff(String name, long value); State getState(); }
AtomicBackoff { public State getState() { return new State(value.get()); } AtomicBackoff(String name, long value); State getState();  }