org.apache.http.impl.client.DefaultHttpRequestRetryHandler
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
DefaultHttpRequestRetryHandler(int retryCount, boolean requestSentRetryEnabled)
Default constructor
public
DefaultHttpRequestRetryHandler()
Default constructor
Public Methods
public
int
getRetryCount()
Returns
- the maximum number of times a method will be retried
public
boolean
isRequestSentRetryEnabled()
Returns
true if this handler will retry methods that have
successfully sent their request, false otherwise
public
boolean
retryRequest(IOException exception, int executionCount, HttpContext context)
Used retryCount and requestSentRetryEnabled to determine
if the given method should be retried.