public class RetryContext extends Object
| Constructor and Description |
|---|
RetryContext(Duration firstBackoff,
Duration maxBackoffInterval) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the attempt count, treating further calls to
next() as brand new retry context. |
int |
getAttempts() |
Duration |
getFirstBackoff() |
Duration |
getMaxBackoffInterval() |
int |
getResetCount() |
boolean |
isConnected() |
void |
next()
Signal that the next retry attempt should be underway.
|
void |
reset()
Reset the attempt count, treating further calls to
next() as new retry sequences. |
public void next()
public void reset()
next() as new retry sequences.public void clear()
next() as brand new retry context.public Duration getFirstBackoff()
public Duration getMaxBackoffInterval()
public boolean isConnected()
public int getAttempts()
public int getResetCount()