@Contract(threading=STATELESS)
public interface HttpRequestRetryStrategy
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hc.core5.util.TimeValue | getRetryInterval(org.apache.hc.core5.http.HttpResponse response,
                int execCount,
                org.apache.hc.core5.http.protocol.HttpContext context)Determines the retry interval between subsequent retries. | 
| boolean | retryRequest(org.apache.hc.core5.http.HttpRequest request,
            IOException exception,
            int execCount,
            org.apache.hc.core5.http.protocol.HttpContext context)Determines if a method should be retried after an I/O exception
 occured during execution. | 
| boolean | retryRequest(org.apache.hc.core5.http.HttpResponse response,
            int execCount,
            org.apache.hc.core5.http.protocol.HttpContext context)Determines if a method should be retried given the response from
 the target server. | 
boolean retryRequest(org.apache.hc.core5.http.HttpRequest request,
                   IOException exception,
                   int execCount,
                   org.apache.hc.core5.http.protocol.HttpContext context)
request - the request failed due to an I/O exceptionexception - the exception that occurredexecCount - the number of times this method has been
                  unsuccessfully executedcontext - the context for the request executiontrue if the request should be retried, false
         otherwiseboolean retryRequest(org.apache.hc.core5.http.HttpResponse response,
                   int execCount,
                   org.apache.hc.core5.http.protocol.HttpContext context)
response - the response from the target serverexecCount - the number of times this method has been
                  unsuccessfully executedcontext - the context for the request executiontrue if the request should be retried, false
         otherwiseorg.apache.hc.core5.util.TimeValue getRetryInterval(org.apache.hc.core5.http.HttpResponse response,
                                                  int execCount,
                                                  org.apache.hc.core5.http.protocol.HttpContext context)
response - the response from the target serverexecCount - the number of times this method has been
                  unsuccessfully executedcontext - the context for the request executionCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.