You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2019/12/05 10:38:00 UTC
[jira] [Created] (HTTPCLIENT-2034) Introduce
HttpRequestRetryStrategy
Michael Osipov created HTTPCLIENT-2034:
------------------------------------------
Summary: Introduce HttpRequestRetryStrategy
Key: HTTPCLIENT-2034
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2034
Project: HttpComponents HttpClient
Issue Type: New Feature
Components: HttpClient (classic)
Affects Versions: 5.0 Beta6
Reporter: Michael Osipov
Assignee: Michael Osipov
Fix For: 5.0 Beta7
A new interface:
{code:java}
interface HttpRequestRetryStrategy {
boolean retryRequest(HttpRequest request, IOException exception, int executionCount, HttpContext context);
boolean retryRequest(HttpResponse response, int executionCount, HttpContext context);
TimeValue getRetryInterval(HttpResponse response, int executionCount, HttpContext context);
}
{code}
along with an new default implementation will supersede {{ServiceUnavailableRetryStrategy}} as well as {{HttpRequestRetryHandler}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org