public class DefaultMethodRetryHandler extends Object implements MethodRetryHandler
| Constructor and Description |
|---|
DefaultMethodRetryHandler()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getRetryCount()
Deprecated.
|
boolean |
isRequestSentRetryEnabled()
Deprecated.
|
boolean |
retryMethod(HttpMethod method,
HttpConnection connection,
HttpRecoverableException recoverableException,
int executionCount,
boolean requestSent)
Deprecated.
Used
retryCount and requestSentRetryEnabled to determine
if the given method should be retried. |
void |
setRequestSentRetryEnabled(boolean requestSentRetryEnabled)
Deprecated.
|
void |
setRetryCount(int retryCount)
Deprecated.
|
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 in interface 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 © 2020 Internet2. All rights reserved.