public interface HttpRequestRetryHandler
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.
| Modifier and Type | Method and Description |
|---|---|
boolean |
retryRequest(org.apache.hc.core5.http.HttpRequest request,
IOException exception,
int executionCount,
org.apache.hc.core5.http.protocol.HttpContext context)
Determines if a method should be retried after an IOException
occurs during execution.
|
boolean retryRequest(org.apache.hc.core5.http.HttpRequest request,
IOException exception,
int executionCount,
org.apache.hc.core5.http.protocol.HttpContext context)
request - request failed die to an I/O exception.exception - the exception that occurredexecutionCount - the number of times this method has been
unsuccessfully executedcontext - the context for the request executiontrue if the method should be retried, false
otherwiseCopyright © 1999–2017 The Apache Software Foundation. All rights reserved.