Interface DelayPolicy

All Known Implementing Classes:
ExponentialBackoffDelayPolicy

public interface DelayPolicy
An interface defining the delay policy between retries.
  • Method Summary

    Modifier and Type
    Method
    Description
    delay(int attempts)
    Returns the delay needed before attempting the next retry.
  • Method Details

    • delay

      Duration delay(int attempts)
      Returns the delay needed before attempting the next retry.
      Parameters:
      attempts - The number of attempts made to make the call
      Returns:
      The duration to wait