Interface BackoffSchedule

All Known Implementing Classes:
DefaultBackoffSchedule

public interface BackoffSchedule
Stateless retry-delay generator. Implementations return a Duration based on the attempt number; ConnectFlow owns the attempt counter.
  • Method Summary

    Modifier and Type
    Method
    Description
    next(int attempt)
     
  • Method Details

    • next

      Duration next(int attempt)
      Parameters:
      attempt - 1-based retry index (attempt 1 = first retry after the initial failure)
      Returns:
      the delay before the next retry attempt