public interface ServiceUnavailableRetryStrategy
Modifier and Type | Method and Description |
---|---|
long |
getRetryInterval() |
boolean |
retryRequest(HttpResponse response,
int executionCount,
HttpContext context)
Determines if a method should be retried given the response from the target server.
|
boolean retryRequest(HttpResponse response, int executionCount, HttpContext context)
response
- the response from the target serverexecutionCount
- the number of times this method has been
unsuccessfully executedcontext
- the context for the request executiontrue
if the method should be retried, false
otherwiselong getRetryInterval()