public static class ConcurrentUpdateSolrClient.Builder extends Object
ConcurrentUpdateSolrClient
instances from provided configuration.Constructor and Description |
---|
Builder(String baseSolrUrl)
Create a Builder object, based on the provided Solr URL.
|
Modifier and Type | Method and Description |
---|---|
ConcurrentUpdateSolrClient.Builder |
alwaysStreamDeletes()
Configures created clients to always stream delete requests.
|
ConcurrentUpdateSolrClient |
build()
Create a
ConcurrentUpdateSolrClient based on the provided configuration options. |
ConcurrentUpdateSolrClient.Builder |
neverStreamDeletes()
Configures created clients to not stream delete requests.
|
ConcurrentUpdateSolrClient.Builder |
withExecutorService(ExecutorService executorService)
Provides the
ExecutorService for clients to use when servicing requests. |
ConcurrentUpdateSolrClient.Builder |
withHttpClient(org.apache.http.client.HttpClient httpClient)
Provides a
HttpClient for the builder to use when creating clients. |
ConcurrentUpdateSolrClient.Builder |
withQueueSize(int queueSize)
The number of documents to batch together before sending to Solr.
|
ConcurrentUpdateSolrClient.Builder |
withThreadCount(int threadCount)
The number of threads used to empty
ConcurrentUpdateSolrClient s queue. |
public Builder(String baseSolrUrl)
baseSolrUrl
- the base URL of the Solr server that will be targeted by any created clients.public ConcurrentUpdateSolrClient.Builder withHttpClient(org.apache.http.client.HttpClient httpClient)
HttpClient
for the builder to use when creating clients.public ConcurrentUpdateSolrClient.Builder withQueueSize(int queueSize)
public ConcurrentUpdateSolrClient.Builder withThreadCount(int threadCount)
ConcurrentUpdateSolrClient
s queue.public ConcurrentUpdateSolrClient.Builder withExecutorService(ExecutorService executorService)
ExecutorService
for clients to use when servicing requests.public ConcurrentUpdateSolrClient.Builder alwaysStreamDeletes()
public ConcurrentUpdateSolrClient.Builder neverStreamDeletes()
public ConcurrentUpdateSolrClient build()
ConcurrentUpdateSolrClient
based on the provided configuration options.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.