public static class LBHttpSolrClient.Builder extends Object
LBHttpSolrClient
instances from provided configuration.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LBHttpSolrClient |
build()
Create a
HttpSolrClient based on provided configuration. |
HttpSolrClient.Builder |
getHttpSolrClientBuilder() |
LBHttpSolrClient.Builder |
withBaseSolrUrl(String baseSolrUrl)
Provide a Solr endpoint to be used when configuring
LBHttpSolrClient instances. |
LBHttpSolrClient.Builder |
withBaseSolrUrls(String... solrUrls)
Provide Solr endpoints to be used when configuring
LBHttpSolrClient instances. |
LBHttpSolrClient.Builder |
withHttpClient(org.apache.http.client.HttpClient httpClient)
Provides a
HttpClient for the builder to use when creating clients. |
LBHttpSolrClient.Builder |
withHttpSolrClientBuilder(HttpSolrClient.Builder builder)
Provides a
HttpSolrClient.Builder to be used for building the internally used clients. |
LBHttpSolrClient.Builder |
withResponseParser(ResponseParser responseParser)
Provides a
ResponseParser for created clients to use when handling requests. |
public HttpSolrClient.Builder getHttpSolrClientBuilder()
public LBHttpSolrClient.Builder withBaseSolrUrl(String baseSolrUrl)
LBHttpSolrClient
instances.
Method may be called multiple times. All provided values will be used.public LBHttpSolrClient.Builder withBaseSolrUrls(String... solrUrls)
LBHttpSolrClient
instances.
Method may be called multiple times. All provided values will be used.public LBHttpSolrClient.Builder withHttpClient(org.apache.http.client.HttpClient httpClient)
HttpClient
for the builder to use when creating clients.public LBHttpSolrClient.Builder withResponseParser(ResponseParser responseParser)
ResponseParser
for created clients to use when handling requests.public LBHttpSolrClient.Builder withHttpSolrClientBuilder(HttpSolrClient.Builder builder)
HttpSolrClient.Builder
to be used for building the internally used clients.public LBHttpSolrClient build()
HttpSolrClient
based on provided configuration.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.