Class ConcurrentUpdateHttp2SolrClient.Builder

    • Field Detail

      • baseSolrUrl

        protected String baseSolrUrl
      • queueSize

        protected int queueSize
      • threadCount

        protected int threadCount
      • streamDeletes

        protected boolean streamDeletes
      • closeHttp2Client

        protected boolean closeHttp2Client
    • Method Detail

      • withQueueSize

        public ConcurrentUpdateHttp2SolrClient.Builder withQueueSize​(int queueSize)
        The maximum number of requests buffered by the SolrClient's internal queue before being processed by background threads. This value should be carefully paired with the number of queue-consumer threads. A queue with a maximum size set too high may require more memory. A queue with a maximum size set too low may suffer decreased throughput as SolrClient.request(SolrRequest) calls block waiting to add requests to the queue. If not set, this defaults to 10.
        See Also:
        withThreadCount(int)
      • withThreadCount

        public ConcurrentUpdateHttp2SolrClient.Builder withThreadCount​(int threadCount)
        The maximum number of threads used to empty ConcurrentUpdateHttp2SolrClients queue. Threads are created when documents are added to the client's internal queue and exit when no updates remain in the queue.

        This value should be carefully paired with the maximum queue capacity. A client with too few threads may suffer decreased throughput as the queue fills up and SolrClient.request(SolrRequest) calls block waiting to add requests to the queue.

      • alwaysStreamDeletes

        public ConcurrentUpdateHttp2SolrClient.Builder alwaysStreamDeletes()
        Configures created clients to always stream delete requests. Streamed deletes are put into the update-queue and executed like any other update request.
      • neverStreamDeletes

        public ConcurrentUpdateHttp2SolrClient.Builder neverStreamDeletes()
        Configures created clients to not stream delete requests. With this option set when the created ConcurrentUpdateHttp2SolrClient sents a delete request it will first will lock the queue and block until all queued updates have been sent, and then send the delete request.