HttpRequestRetryHandler used by request executors.
| Modifier and Type | Field and Description |
|---|---|
| public static final DefaultHttpRequestRetryHandler | |
| private final Set | |
| private final boolean | requestSentRetryEnabled
Whether or not methods that have successfully sent their request will be retried |
| private final int | retryCount
the number of times a method will be retried |
| Access | Constructor and Description |
|---|---|
| protected | DefaultHttpRequestRetryHandler(final int
how many times to retry; 0 means no retries retryCount, final boolean true if it's OK to retry requests that have been sent requestSentRetryEnabled, final Collection<Class<? extends IOException>> the IOException types that should not be retried clazzes)Create the request retry handler using the specified IOException classes |
| public | DefaultHttpRequestRetryHandler(final int
how many times to retry; 0 means no retries retryCount, final boolean true if it's OK to retry non-idempotent requests that have been sent requestSentRetryEnabled)Create the request retry handler using the following list of non-retriable IOException classes:
|
| public | DefaultHttpRequestRetryHandler()
Create the request retry handler with a retry count of 3, requestSentRetryEnabled false and using the following list of non-retriable IOException classes:
|
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| protected boolean | |
| public boolean | Returns: true if this handler will retry methods that have
successfully sent their request, false otherwise
|
| protected boolean | |
| public boolean | retryRequest(final IOException
the exception that occurred exception, final int the number of times this method has been
unsuccessfully executed executionCount, final HttpContext the context for the request execution context)Implements org. retryCount and requestSentRetryEnabled to determine
if the given method should be retried.
|
| INSTANCE | back to summary |
|---|---|
| public static final DefaultHttpRequestRetryHandler INSTANCE | |
| nonRetriableClasses | back to summary |
|---|---|
| private final Set<Class<? extends IOException>> nonRetriableClasses | |
| requestSentRetryEnabled | back to summary |
|---|---|
| private final boolean requestSentRetryEnabled Whether or not methods that have successfully sent their request will be retried | |
| retryCount | back to summary |
|---|---|
| private final int retryCount the number of times a method will be retried | |
| DefaultHttpRequestRetryHandler | back to summary |
|---|---|
| protected DefaultHttpRequestRetryHandler(final int retryCount, final boolean requestSentRetryEnabled, final Collection<Class<? extends IOException>> clazzes) Create the request retry handler using the specified IOException classes
| |
| DefaultHttpRequestRetryHandler | back to summary |
|---|---|
| public DefaultHttpRequestRetryHandler(final int retryCount, final boolean requestSentRetryEnabled) Create the request retry handler using the following list of
non-retriable IOException classes:
| |
| DefaultHttpRequestRetryHandler | back to summary |
|---|---|
| public DefaultHttpRequestRetryHandler() Create the request retry handler with a retry count of 3, requestSentRetryEnabled false
and using the following list of non-retriable IOException classes:
| |
| getRetryCount | back to summary |
|---|---|
public int getRetryCount()
| |
| handleAsIdempotent | back to summary |
|---|---|
protected boolean handleAsIdempotent(final HttpRequest request)
| |
| isRequestSentRetryEnabled | back to summary |
|---|---|
public boolean isRequestSentRetryEnabled()
| |
| requestIsAborted | back to summary |
|---|---|
| protected boolean requestIsAborted(final HttpRequest request)
Deprecated (4.3)
| |
| retryRequest | back to summary |
|---|---|
| public boolean retryRequest(final IOException exception, final int executionCount, final HttpContext context) Implements org. Used
| |