public class BasicHttpRequestRetryHandler extends StandardHttpRequestRetryHandler
StandardHttpRequestRetryHandler
that adds support for a retry interval.INSTANCE
Constructor and Description |
---|
BasicHttpRequestRetryHandler(int retryCount,
int retryInterval,
boolean requestSentRetryEnabled)
Create the request retry handler.
|
Modifier and Type | Method and Description |
---|---|
boolean |
retryRequest(IOException exception,
int executionCount,
HttpContext context) |
handleAsIdempotent
getRetryCount, isRequestSentRetryEnabled, requestIsAborted
public BasicHttpRequestRetryHandler(int retryCount, int retryInterval, boolean requestSentRetryEnabled)
retryCount
- How many times to retry. 0
means no retries.retryInterval
- The time in milliseconds to sleep before trying again, or <=0
for no interval.requestSentRetryEnabled
- Specify public boolean retryRequest(IOException exception, int executionCount, HttpContext context)
retryRequest
in interface HttpRequestRetryHandler
retryRequest
in class DefaultHttpRequestRetryHandler
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.