public class CustomServiceUnavailableRetryStrategy
Default implementation of the ServiceUnavailableRetryStrategy interface.
that retries 503 (Service Unavailable) responses for a fixed number of times
at a fixed interval.
| Constructor and Description |
|---|
CustomServiceUnavailableRetryStrategy(int maxRetries,
int retryInterval)
Default implementation of the ServiceUnavailableRetryStrategy interface.
that retries
503 (Service Unavailable) responses for a fixed number of times
at a fixed interval. |
| Modifier and Type | Method and Description |
|---|---|
long |
getRetryInterval() |
boolean |
retryRequest(org.apache.http.HttpResponse response,
int executionCount,
org.apache.http.protocol.HttpContext context) |
public CustomServiceUnavailableRetryStrategy(int maxRetries,
int retryInterval)
Default implementation of the ServiceUnavailableRetryStrategy interface.
that retries 503 (Service Unavailable) responses for a fixed number of times
at a fixed interval.
maxRetries - Maximum number of allowed retries if the server responds with a HTTP codein our retry code list. Default value is 1.