org.springframework.util.backoff

## 接口 BackOff

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

      @FunctionalInterface
      public interface BackOff

  Provide a `BackOffExecution` that indicates the rate at which an operation should be retried.

  Users of this interface are expected to use it like this:

       BackOffExecution exec = backOff.start();

       // In the operation recovery/retry loop:
       long waitInterval = exec.nextBackOff();
       if (waitInterval == BackOffExecution.STOP) {
           // do not retry operation
       }
       else {
           // sleep, e.g. Thread.sleep(waitInterval)
           // retry operation
       }
       }

  Once the underlying operation has completed successfully, the execution instance can be simply discarded.
  从以下版本开始:
    4.1
  作者:
    Stephane Nicoll
  另请参阅:
    `BackOffExecution`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `BackOffExecution` | `start()` Start a new back off execution.

- - ### 方法详细资料

    - #### start

          BackOffExecution start()

      Start a new back off execution.
      返回:
        a fresh `BackOffExecution` ready to be used