Package org.apache.http.client
Interface HttpRequestRetryHandler
- All Known Implementing Classes:
DefaultHttpRequestRetryHandler
public interface HttpRequestRetryHandler
A handler for determining if an HttpRequest 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
-
Method Summary
Modifier and Type Method Description booleanretryRequest(IOException exception, int executionCount, HttpContext context)Determines if a method should be retried after an IOException occurs during execution.
-
Method Details
-
retryRequest
Determines if a method should be retried after an IOException occurs during execution.- Parameters:
exception- the exception that occurredexecutionCount- the number of times this method has been unsuccessfully executedcontext- the context for the request execution- Returns:
trueif the method should be retried,falseotherwise
-