Interface BackOff

All Known Implementing Classes:
ConstantBackOff, CustomBackOff, ExponentialBackOff, FibonacciBackOff

public interface BackOff
Computes the delay value.

For each invocation of the retry strategy, one instance is obtained and used for computing all delay values. This instance may be used from multiple threads, but is not used concurrently. That is, implementations can hold state, but must take care of its visibility across threads.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final BackOff
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
  • Field Details

  • Method Details

    • getInMillis

      long getInMillis(Throwable cause)
      Parameters:
      cause - exception causing the retry attempt before which the delay occurs
      Returns:
      non-negative number