Package org.apache.commons.httpclient
Interface HttpMethodRetryHandler
-
- All Known Implementing Classes:
DefaultHttpMethodRetryHandler
@Deprecated public interface HttpMethodRetryHandler
Deprecated.Jakarta Commons HttpClient 3.x is deprecated in the Jenkins project. It is not recommended to use it in any new code. Instead, use HTTP client API plugins as a dependency in your code. E.g. Apache HttpComponents Client API 4.x Plugin or Async HTTP Client Plugin.A handler for determining if an HttpMethod should be retried after a recoverable exception during execution.Classes implementing this interface must synchronize access to shared data as methods of this interfrace may be executed from multiple threads
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
retryMethod(HttpMethod method, java.io.IOException exception, int executionCount)
Deprecated.Determines if a method should be retried after an HttpRecoverableException occurs during execution.
-
-
-
Method Detail
-
retryMethod
boolean retryMethod(HttpMethod method, java.io.IOException exception, int executionCount)
Deprecated.Determines if a method should be retried after an HttpRecoverableException occurs during execution.- Parameters:
method
- the method being executedexception
- the exception that occurredexecutionCount
- the number of times this method has been unsuccessfully executed- Returns:
true
if the method should be retried,false
otherwise
-
-