public class NFHttpMethodRetryHandler
extends org.apache.http.impl.client.DefaultHttpRequestRetryHandler
| Constructor and Description |
|---|
NFHttpMethodRetryHandler(java.lang.String httpClientName,
int retryCount,
boolean requestSentRetryEnabled,
int sleepTimeFactorMs)
Creates a new NFHttpMethodRetryHandler.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
retryRequest(java.io.IOException exception,
int executionCount,
org.apache.http.protocol.HttpContext context) |
public NFHttpMethodRetryHandler(java.lang.String httpClientName,
int retryCount,
boolean requestSentRetryEnabled,
int sleepTimeFactorMs)
httpClientName - - the name of the nfhttpclientretryCount - the number of times a method will be retriedrequestSentRetryEnabled - if true, methods that have successfully sent their request will be retriedsleepTimeFactorMs - number of milliseconds to sleep before the next try. This factor is used along with execution count
to determine the sleep time (ie) executionCount * sleepTimeFactorMspublic boolean retryRequest(java.io.IOException exception,
int executionCount,
org.apache.http.protocol.HttpContext context)
retryRequest in interface org.apache.http.client.HttpRequestRetryHandlerretryRequest in class org.apache.http.impl.client.DefaultHttpRequestRetryHandler