[ https://issues.apache.org/jira/browse/SOLR-17211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17832433#comment-17832433 ]
David Smiley commented on SOLR-17211: ------------------------------------- James, please see SOLR-14763 which suggests an API that removes Solr's needless bespoke interface in place of JDK provided CompletableFuture. There's a PR there too... sadly the contributor and I both lost sight of it but there it sits anyway. > HttpJdkSolrClient: Support Async > --------------------------------- > > Key: SOLR-17211 > URL: https://issues.apache.org/jira/browse/SOLR-17211 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Components: SolrJ > Reporter: James Dyer > Priority: Minor > Time Spent: 10m > Remaining Estimate: 0h > > 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 > {code:java} > public Cancellable asyncRequest( > SolrRequest<?> solrRequest, > String collection, > AsyncListener<NamedList<Object>> asyncListener) > {code} > 2. Implement on *HttpJdkSolrClient* > 3. Add javadoc for both clients. > 4. Add unit tests for both clients. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org