public interface HttpRequestRetryHandler
此接口的实现必须是线程安全的。 必须同步访问共享数据,因为可以从多个线程执行此接口的方法。
| Modifier and Type | Method and Description |
|---|---|
boolean |
retryRequest(IOException exception, int executionCount, HttpContext context)
确定在执行期间是否发生IOException之后是否应重试一个方法。
|
boolean retryRequest(IOException exception, int executionCount, HttpContext context)
exception - 发生的例外
executionCount - 此方法未成功执行的次数
context - 请求执行的上下文
true如果该方法应该重试,否则为
false
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.