private class ExponentialBackOff.ExponentialBackOffExecution extends java.lang.Object implements BackOffExecution
Modifier and Type | Field and Description |
---|---|
private long |
currentElapsedTime |
private long |
currentInterval |
STOP
Modifier | Constructor and Description |
---|---|
private |
ExponentialBackOffExecution() |
Modifier and Type | Method and Description |
---|---|
private long |
computeNextInterval() |
private long |
multiplyInterval(long maxInterval) |
long |
nextBackOff()
Return the number of milliseconds to wait before retrying the operation
or
BackOffExecution.STOP (-1L) to indicate that no further attempt
should be made for the operation. |
java.lang.String |
toString() |
private long currentInterval
private long currentElapsedTime
public long nextBackOff()
BackOffExecution
BackOffExecution.STOP
(-1L) to indicate that no further attempt
should be made for the operation.nextBackOff
in interface BackOffExecution
private long computeNextInterval()
private long multiplyInterval(long maxInterval)
public java.lang.String toString()
toString
in class java.lang.Object