Interface Backoff.Policy

All Known Implementing Classes:
Backoff.Constant, Backoff.Exponential, Backoff.Jitter
Enclosing class:
Backoff

public static interface Backoff.Policy
Back off policy.

It defines a stream of time durations that will be used for backing off.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Backoff.Policy
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Convert the policy into a series of backoff values.
  • Field Details

  • Method Details

    • toBackoffs

      Stream<Long> toBackoffs()
      Convert the policy into a series of backoff values.
      Returns:
      a series of backoff values.