Interface RetryStrategy

    • Method Detail

      • shouldRetry

        CompletableFuture<RetryAction> shouldRetry​(Request<? extends Response> request,
                                                   RetryReason reason)
        Checks if the given request should be retried and how long the retry delay should be.
        request - the request to be checked.
        If empty, no retry should be done. If a duration is returned it determines the retry delay.