Interface BackOffStrategy

All Known Implementing Classes:
FixedBackOffStrategy

public interface BackOffStrategy
A back-off strategy is used to configure different strategies for calculating the interval time between iterations
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    calculateInterval(int iteration)
    Calculates the back-off interval
  • Method Details

    • calculateInterval

      long calculateInterval(int iteration)
      Calculates the back-off interval
      Parameters:
      iteration - the current iteration count
      Returns:
      the interval in milliseconds