public class ExpBackoff
extends java.lang.Object
Constructor and Description |
---|
ExpBackoff() |
Modifier and Type | Method and Description |
---|---|
boolean |
doSleep()
Pause the current thread for the appropriate number of milliseconds.
|
int |
getAttemptCount() |
long |
getNextDelay()
Increment attempt counter and return time to sleep in milliseconds
|
void |
reset() |
boolean |
wakeUp() |
public long getNextDelay()
public boolean doSleep()
public void reset()
public int getAttemptCount()
public boolean wakeUp()