Package org.apache.http.client
Interface HttpRequestRetryHandler
-
- All Known Implementing Classes:
DefaultHttpRequestRetryHandler,StandardHttpRequestRetryHandler
public interface HttpRequestRetryHandlerA handler for determining if an HttpRequest should be retried after a recoverable exception during execution.Implementations of this interface must be thread-safe. Access to shared data must be synchronized as methods of this interface may be executed from multiple threads.
- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanretryRequest(java.io.IOException exception, int executionCount, HttpContext context)Determines if a method should be retried after an IOException occurs during execution.
-
-
-
Method Detail
-
retryRequest
boolean retryRequest(java.io.IOException exception, int executionCount, HttpContext context)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
-
-