com.ptteng.mall.order.util.apacheCommonUtil.httpclient.DefaultHttpMethodRetryHandlerpublic class DefaultMethodRetryHandler extends Object implements MethodRetryHandler
HttpMethodBase.setMethodRetryHandler(MethodRetryHandler)| 构造器和说明 |
|---|
DefaultMethodRetryHandler()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getRetryCount()
已过时。
|
boolean |
isRequestSentRetryEnabled()
已过时。
|
boolean |
retryMethod(HttpMethod method,
HttpConnection connection,
HttpRecoverableException recoverableException,
int executionCount,
boolean requestSent)
已过时。
Used
retryCount and requestSentRetryEnabled to determine
if the given method should be retried. |
void |
setRequestSentRetryEnabled(boolean requestSentRetryEnabled)
已过时。
|
void |
setRetryCount(int retryCount)
已过时。
|
public boolean retryMethod(HttpMethod method, HttpConnection connection, HttpRecoverableException recoverableException, int executionCount, boolean requestSent)
retryCount and requestSentRetryEnabled to determine
if the given method should be retried.retryMethod 在接口中 MethodRetryHandlermethod - 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
otherwiseMethodRetryHandler.retryMethod(HttpMethod, HttpConnection, HttpRecoverableException, int, boolean)public boolean isRequestSentRetryEnabled()
true if this handler will retry methods that have
successfully sent their request, false otherwisepublic int getRetryCount()
public void setRequestSentRetryEnabled(boolean requestSentRetryEnabled)
requestSentRetryEnabled - a flag indicating if methods that have
successfully sent their request should be retriedpublic void setRetryCount(int retryCount)
retryCount - the maximum number of times a method can be retriedCopyright © 2017. All rights reserved.