|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.impl.client.DefaultHttpRequestRetryHandler
@Immutable public class DefaultHttpRequestRetryHandler
The default HttpRequestRetryHandler
used by request executors.
Constructor Summary | |
---|---|
DefaultHttpRequestRetryHandler()
Default constructor |
|
DefaultHttpRequestRetryHandler(int retryCount,
boolean requestSentRetryEnabled)
Default constructor |
Method Summary | |
---|---|
int |
getRetryCount()
|
boolean |
isRequestSentRetryEnabled()
|
boolean |
retryRequest(IOException exception,
int executionCount,
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 |
Constructor Detail |
---|
public DefaultHttpRequestRetryHandler(int retryCount, boolean requestSentRetryEnabled)
public DefaultHttpRequestRetryHandler()
Method Detail |
---|
public boolean retryRequest(IOException exception, int executionCount, HttpContext context)
retryCount
and requestSentRetryEnabled
to determine
if the given method should be retried.
retryRequest
in interface HttpRequestRetryHandler
exception
- the exception that occurredexecutionCount
- the number of times this method has been
unsuccessfully executedcontext
- the context for the request execution
true
if the method should be retried, false
otherwisepublic boolean isRequestSentRetryEnabled()
true
if this handler will retry methods that have
successfully sent their request, false
otherwisepublic int getRetryCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |