Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-17211

HttpJdkSolrClient: Support Async

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.6
    • SolrJ
    • None

    Description

      With SOLR-599 we added a new SolrJ client HttpJdkSolrClient which uses java.net.http.HttpClient internally. This JDK client supports asynchronous requests, so the Jdk Solr Client likewise can have async support. This ticket is to:

      1. Extract from Http2SolrClient method

       public Cancellable asyncRequest(
            SolrRequest<?> solrRequest,
            String collection,
            AsyncListener<NamedList<Object>> asyncListener)
      

      2. Implement on HttpJdkSolrClient

      3. Add javadoc for both clients.

      4. Add unit tests for both clients.

      Attachments

        Issue Links

          Activity

            People

              jdyer James Dyer
              jdyer James Dyer
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 1h 20m
                  1h 20m