org.springframework.util.backoff

## 类 FixedBackOff

- java.lang.Object
- - org.springframework.util.backoff.FixedBackOff

- 所有已实现的接口:
    BackOff

      public class FixedBackOff
      extends Object
      implements BackOff

  A simple `BackOff` implementation that provides a fixed interval between two attempts and a maximum number of retries.
  从以下版本开始:
    4.1
  作者:
    Stephane Nicoll

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static long` | `DEFAULT_INTERVAL` The default recovery interval: 5000 ms = 5 seconds.
    `static long` | `UNLIMITED_ATTEMPTS` Constant value indicating an unlimited number of attempts.

  - ### 构造器概要

    构造器
    构造器和说明
    `FixedBackOff()` Create an instance with an interval of 5000L ms and an unlimited number of attempts.
    `FixedBackOff(long interval, long maxAttempts)` Create an instance.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `long` | `getInterval()` Return the interval between two attempts in milliseconds.
    `long` | `getMaxAttempts()` Return the maximum number of attempts in milliseconds.
    `void` | `setInterval(long interval)` Set the interval between two attempts in milliseconds.
    `void` | `setMaxAttempts(long maxAttempts)` Set the maximum number of attempts in milliseconds.
    `BackOffExecution` | `start()` Start a new back off execution.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### DEFAULT_INTERVAL

          public static final long DEFAULT_INTERVAL

      The default recovery interval: 5000 ms = 5 seconds.
      另请参阅:
        常量字段值

    - #### UNLIMITED_ATTEMPTS

          public static final long UNLIMITED_ATTEMPTS

      Constant value indicating an unlimited number of attempts.
      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### FixedBackOff

          public FixedBackOff()

      Create an instance with an interval of 5000L ms and an unlimited number of attempts.

    - #### FixedBackOff

          public FixedBackOff(long interval,
                              long maxAttempts)

      Create an instance.
      参数:
        `interval` - the interval between two attempts
        `maxAttempts` - the maximum number of attempts

  - ### 方法详细资料

    - #### setInterval

          public void setInterval(long interval)

      Set the interval between two attempts in milliseconds.

    - #### getInterval

          public long getInterval()

      Return the interval between two attempts in milliseconds.

    - #### setMaxAttempts

          public void setMaxAttempts(long maxAttempts)

      Set the maximum number of attempts in milliseconds.

    - #### getMaxAttempts

          public long getMaxAttempts()

      Return the maximum number of attempts in milliseconds.

    - #### start

          public BackOffExecution start()

      从接口复制的说明: `BackOff`
      Start a new back off execution.
      指定者:
        `start` 在接口中 `BackOff`
      返回:
        a fresh `BackOffExecution` ready to be used