Interface DelayPolicy

  • All Known Implementing Classes:
    ExponentialBackoffDelayPolicy

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

      • 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