类 ExponentialBackOff.ExponentialBackOffExecution
java.lang.Object
cn.taketoday.util.backoff.ExponentialBackOff.ExponentialBackOffExecution
- 所有已实现的接口:
BackOffExecution
- 封闭类:
- ExponentialBackOff
private class ExponentialBackOff.ExponentialBackOffExecution
extends Object
implements BackOffExecution
-
字段概要
字段从接口继承的字段 cn.taketoday.util.backoff.BackOffExecution
STOP -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private longprivate longmultiplyInterval(long maxInterval) longReturn the number of milliseconds to wait before retrying the operation orBackOffExecution.STOP(-1L) to indicate that no further attempt should be made for the operation.toString()
-
字段详细资料
-
currentInterval
private long currentInterval -
currentElapsedTime
private long currentElapsedTime -
attempts
private int attempts
-
-
构造器详细资料
-
ExponentialBackOffExecution
private ExponentialBackOffExecution()
-
-
方法详细资料
-
nextBackOff
public long nextBackOff()从接口复制的说明:BackOffExecutionReturn the number of milliseconds to wait before retrying the operation orBackOffExecution.STOP(-1L) to indicate that no further attempt should be made for the operation.- 指定者:
nextBackOff在接口中BackOffExecution
-
computeNextInterval
private long computeNextInterval() -
multiplyInterval
private long multiplyInterval(long maxInterval) -
toString
-