public interface MethodRetryHandler
HttpMethod.execute(HttpState, HttpConnection),
HttpRecoverableException| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
retryMethod(HttpMethod method,
HttpConnection connection,
HttpRecoverableException recoverableException,
int executionCount,
boolean requestSent)
已过时。
Determines if a method should be retried after an HttpRecoverableException
occurs during execution.
|
boolean retryMethod(HttpMethod method, HttpConnection connection, HttpRecoverableException recoverableException, int executionCount, boolean requestSent)
method - the method being executedconnection - the connection the method is usingrecoverableException - the exception that occurredexecutionCount - the number of times this method has been
unsuccessfully executedrequestSent - this argument is unused and will be removed in the future.
HttpMethod.isRequestSent() should be used insteadtrue if the method should be retried, false
otherwiseCopyright © 2017. All rights reserved.