|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.http.impl.client.DefaultHttpRequestRetryHandlerHC4
@Immutable public class DefaultHttpRequestRetryHandlerHC4
The default HttpRequestRetryHandler used by request executors.
| Field Summary | |
|---|---|
static DefaultHttpRequestRetryHandlerHC4 |
INSTANCE
|
| Constructor Summary | |
|---|---|
|
DefaultHttpRequestRetryHandlerHC4()
Create the request retry handler with a retry count of 3, requestSentRetryEnabled false and using the following list of non-retriable IOException classes: InterruptedIOException UnknownHostException ConnectException SSLException |
|
DefaultHttpRequestRetryHandlerHC4(int retryCount,
boolean requestSentRetryEnabled)
Create the request retry handler using the following list of non-retriable IOException classes: InterruptedIOException UnknownHostException ConnectException SSLException |
protected |
DefaultHttpRequestRetryHandlerHC4(int retryCount,
boolean requestSentRetryEnabled,
java.util.Collection<java.lang.Class<? extends java.io.IOException>> clazzes)
Create the request retry handler using the specified IOException classes |
| Method Summary | |
|---|---|
int |
getRetryCount()
|
protected boolean |
handleAsIdempotent(org.apache.http.HttpRequest request)
|
boolean |
isRequestSentRetryEnabled()
|
protected boolean |
requestIsAborted(org.apache.http.HttpRequest request)
Deprecated. (4.3) |
boolean |
retryRequest(java.io.IOException exception,
int executionCount,
org.apache.http.protocol.HttpContext context)
Used retryCount and requestSentRetryEnabled to determine
if the given method should be retried. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DefaultHttpRequestRetryHandlerHC4 INSTANCE
| Constructor Detail |
|---|
protected DefaultHttpRequestRetryHandlerHC4(int retryCount,
boolean requestSentRetryEnabled,
java.util.Collection<java.lang.Class<? extends java.io.IOException>> clazzes)
retryCount - how many times to retry; 0 means no retriesrequestSentRetryEnabled - true if it's OK to retry requests that have been sentclazzes - the IOException types that should not be retried
public DefaultHttpRequestRetryHandlerHC4(int retryCount,
boolean requestSentRetryEnabled)
retryCount - how many times to retry; 0 means no retriesrequestSentRetryEnabled - true if it's OK to retry requests that have been sentpublic DefaultHttpRequestRetryHandlerHC4()
| Method Detail |
|---|
public boolean retryRequest(java.io.IOException exception,
int executionCount,
org.apache.http.protocol.HttpContext context)
retryCount and requestSentRetryEnabled to determine
if the given method should be retried.
retryRequest in interface org.apache.http.client.HttpRequestRetryHandlerpublic boolean isRequestSentRetryEnabled()
true if this handler will retry methods that have
successfully sent their request, false otherwisepublic int getRetryCount()
protected boolean handleAsIdempotent(org.apache.http.HttpRequest request)
@Deprecated protected boolean requestIsAborted(org.apache.http.HttpRequest request)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||