接口 BackOffExecution

  • 函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

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

    Implementations do not need to be thread safe.

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

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

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      longnextBackOff()
      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.
    • 方法详细资料

      • 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.