Interface PollingStrategy

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PollingStrategy
Functional interface for computing polling delays between attempts.
  • Method Summary

    Modifier and Type
    Method
    Description
    computeDelay(int attempt)
    Computes the delay before the next polling attempt.
  • Method Details

    • computeDelay

      Duration computeDelay(int attempt)
      Computes the delay before the next polling attempt.
      Parameters:
      attempt - The current attempt number (0-based)
      Returns:
      Duration to wait before the next poll