Interface RetryChecker

  • All Known Implementing Classes:

    public interface RetryChecker
    A RetryChecker decides, given the number of attempts and the exception form the most recent request, whether the caller should retry or not.
    • Method Detail

      • shouldRetry

        boolean shouldRetry​(int attempts,
                            CdpClientException exception)
        Returns 'true' if the call should be retried, 'false' otherwise.
        attempts - The number of attempts made
        exception - the request exception
        'true' if the caller should retry, 'false' otherwise