public interface ServiceUnavailableRetryStrategy
| Modifier and Type | Method and Description |
|---|---|
long |
getRetryInterval() |
boolean |
retryRequest(HttpResponse response, int executionCount, HttpContext context)
根据目标服务器的响应确定是否应重试一个方法。
|
boolean retryRequest(HttpResponse response, int executionCount, HttpContext context)
response - 目标服务器的响应
executionCount - 此方法未成功执行的次数
context - 请求执行的上下文
true如果该方法应该重试,否则为
false
long getRetryInterval()
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.