Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-2034

Introduce HttpRequestRetryStrategy

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0 Beta6
    • 5.0 Beta7
    • HttpClient (classic)
    • None

    Description

      A new interface:

      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);
      
      }
      

      along with an new default implementation will supersede ServiceUnavailableRetryStrategy as well as HttpRequestRetryHandler.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h 20m
                  6h 20m