use of org.apache.solr.client.solrj.impl.LBHttpSolrClient in project lucene-solr by apache.
the class HttpShardHandlerFactory method createLoadbalancer.
protected LBHttpSolrClient createLoadbalancer(HttpClient httpClient) {
LBHttpSolrClient client = new Builder().withHttpClient(httpClient).build();
client.setConnectionTimeout(connectionTimeout);
client.setSoTimeout(soTimeout);
return client;
}
Aggregations