Interface HttpMethodRetryHandler
- All Known Implementing Classes:
DefaultHttpMethodRetryHandler
public interface HttpMethodRetryHandler
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
- Author:
- Michael Becke, Oleg Kalnichevski
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanretryMethod(HttpMethod method, IOException exception, int executionCount) Determines if a method should be retried after an HttpRecoverableException occurs during execution.
-
Method Details
-
retryMethod
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:
trueif the method should be retried,falseotherwise
-