接口 BackOffExecution

所有已知实现类:
ExponentialBackOff.ExponentialBackOffExecution, FixedBackOff.FixedBackOffExecution
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface BackOffExecution
Represent a particular back-off execution.

Implementations do not need to be thread safe.

从以下版本开始:
4.0
作者:
Stephane Nicoll
另请参阅:
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final long
    Return value of nextBackOff() that indicates that the operation should not be retried.
  • 方法概要

    修饰符和类型
    方法
    说明
    long
    Return the number of milliseconds to wait before retrying the operation or STOP (-1L) to indicate that no further attempt should be made for the operation.
  • 字段详细资料

    • STOP

      static final long STOP
      Return value of nextBackOff() that indicates that the operation should not be retried.
      另请参阅:
  • 方法详细资料

    • nextBackOff

      long nextBackOff()
      Return the number of milliseconds to wait before retrying the operation or STOP (-1L) to indicate that no further attempt should be made for the operation.