Interface RetryPolicy

All Known Implementing Classes:
ExponentialBackoffRetryPolicy

public interface RetryPolicy
Strategy for computing the delay before retrying a failed event dispatch.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    computeDelayMs(int attempts)
    Computes the delay in milliseconds before the next retry attempt.
  • Method Details

    • computeDelayMs

      long computeDelayMs(int attempts)
      Computes the delay in milliseconds before the next retry attempt.
      Parameters:
      attempts - the number of attempts so far (1-based)
      Returns:
      delay in milliseconds (non-negative)