Class ConcurrentUpdateSolrClient

  • All Implemented Interfaces:
    Closeable, Serializable, AutoCloseable

    @Deprecated(since="9.0")
    public class ConcurrentUpdateSolrClient
    extends SolrClient
    Deprecated.
    ConcurrentUpdateSolrClient buffers all added documents and writes them into open HTTP connections. This class is thread safe.

    Params from UpdateRequest are converted to http request parameters. When params change between UpdateRequests a new HTTP request is started.

    Although any SolrClient request can be made with this implementation, it is only recommended to use ConcurrentUpdateSolrClient with /update requests. The class HttpSolrClient is better suited for the query interface.

    See Also:
    Serialized Form
    • Constructor Detail

      • ConcurrentUpdateSolrClient

        protected ConcurrentUpdateSolrClient​(ConcurrentUpdateSolrClient.Builder builder)
        Deprecated.
        Use builder to construct this class. Uses the supplied HttpClient to send documents to the Solr server.
    • Method Detail

      • getUrlParamNames

        public Set<String> getUrlParamNames()
        Deprecated.
      • handleError

        public void handleError​(Throwable ex)
        Deprecated.
      • onSuccess

        public void onSuccess​(org.apache.http.HttpResponse resp)
        Deprecated.
        Intended to be used as an extension point for doing post processing after a request completes.
      • close

        public void close()
        Deprecated.
      • shutdownNow

        public void shutdownNow()
        Deprecated.
      • setPollQueueTime

        @Deprecated
        public void setPollQueueTime​(int pollQueueTime)
        Deprecated.
        Parameters:
        pollQueueTime - time for an open connection to wait for updates when the queue is empty.