public interface ServiceUnavailableRetryStrategy
Modifier and Type | Method and Description |
---|---|
long |
getRetryInterval() |
boolean |
retryRequest(org.apache.http.HttpResponse response,
int executionCount,
org.apache.http.protocol.HttpContext context)
Determines if a method should be retried given the response from the target server.
|
boolean retryRequest(org.apache.http.HttpResponse response, int executionCount, org.apache.http.protocol.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()
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.