public class SolrHttpRequestRetryHandler extends Object
Modifier and Type | Field and Description |
---|---|
static SolrHttpRequestRetryHandler |
INSTANCE |
Modifier | Constructor and Description |
---|---|
|
SolrHttpRequestRetryHandler()
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 |
|
SolrHttpRequestRetryHandler(int retryCount)
Create the request retry handler using the following list of non-retriable IOException classes:
InterruptedIOException UnknownHostException ConnectException SSLException |
protected |
SolrHttpRequestRetryHandler(int retryCount,
Collection<Class<? extends IOException>> clazzes)
Create the request retry handler using the specified IOException classes
|
Modifier and Type | Method and Description |
---|---|
int |
getRetryCount() |
protected boolean |
handleAsIdempotent(HttpClientContext context) |
protected boolean |
requestIsAborted(HttpRequest request) |
boolean |
retryRequest(IOException exception,
int executionCount,
HttpContext context) |
public static final SolrHttpRequestRetryHandler INSTANCE
protected SolrHttpRequestRetryHandler(int retryCount, Collection<Class<? extends IOException>> clazzes)
retryCount
- how many times to retry; 0 means no retries
true if it's OK to retry requests that have been sentclazzes
- the IOException types that should not be retriedpublic SolrHttpRequestRetryHandler(int retryCount)
retryCount
- how many times to retry; 0 means no retries
true if it's OK to retry non-idempotent requests that have been sentpublic SolrHttpRequestRetryHandler()
public boolean retryRequest(IOException exception, int executionCount, HttpContext context)
public int getRetryCount()
protected boolean handleAsIdempotent(HttpClientContext context)
protected boolean requestIsAborted(HttpRequest request)