public class CountdownHttpRequestRetryHandler extends Object implements org.apache.http.client.HttpRequestRetryHandler
HttpRequestRetryHandler for retrying HTTP requests up to the given number of maximum attempts.
Requests are only retried when no response is received from the server and not for any other kind of explicit,
permanent error.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_RETRIES |
| Constructor and Description |
|---|
CountdownHttpRequestRetryHandler() |
CountdownHttpRequestRetryHandler(int retries) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
retryRequest(IOException exception,
int executionCount,
org.apache.http.protocol.HttpContext context) |
public static final int DEFAULT_RETRIES
public CountdownHttpRequestRetryHandler()
public CountdownHttpRequestRetryHandler(int retries)
public boolean retryRequest(IOException exception, int executionCount, org.apache.http.protocol.HttpContext context)
retryRequest in interface org.apache.http.client.HttpRequestRetryHandlerCopyright © 2018. All rights reserved.