public interface HttpMethodRetryHandler
Classes implementing this interface must synchronize access to shared data as methods of this interfrace may be executed from multiple threads
HttpMethod.execute(HttpState, HttpConnection)| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
retryMethod(HttpMethod method,
IOException exception,
int executionCount)
Determines if a method should be retried after an HttpRecoverableException
occurs during execution.
|
boolean retryMethod(HttpMethod method, IOException exception, int executionCount)
method - the method being executedexception - the exception that occurredexecutionCount - the number of times this method has been
unsuccessfully executedtrue if the method should be retried, false
otherwiseCopyright © 2017. All rights reserved.