Class SolrClientBuilder<B extends SolrClientBuilder<B>>
- java.lang.Object
-
- org.apache.solr.client.solrj.impl.SolrClientBuilder<B>
-
- Direct Known Subclasses:
CloudLegacySolrClient.Builder
,ConcurrentUpdateSolrClient.Builder
,HttpSolrClient.Builder
,LBHttpSolrClient.Builder
@Deprecated(since="9.0") public abstract class SolrClientBuilder<B extends SolrClientBuilder<B>> extends Object
Deprecated.Please look into using Solr's new Http2 clients
-
-
Field Summary
Fields Modifier and Type Field Description protected Integer
connectionTimeoutMillis
Deprecated.protected org.apache.http.client.HttpClient
httpClient
Deprecated.protected ResponseParser
responseParser
Deprecated.protected Integer
socketTimeoutMillis
Deprecated.
-
Constructor Summary
Constructors Constructor Description SolrClientBuilder()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract B
getThis()
Deprecated.The solution for the unchecked cast warning.B
withConnectionTimeout(int connectionTimeoutMillis)
Deprecated.TellsHttpSolrClient.Builder
that created clients should obey the following timeout when connecting to Solr servers.B
withHttpClient(org.apache.http.client.HttpClient httpClient)
Deprecated.Provides aHttpClient
for the builder to use when creating clients.B
withResponseParser(ResponseParser responseParser)
Deprecated.Provides aResponseParser
for created clients to use when handling requests.B
withSocketTimeout(int socketTimeoutMillis)
Deprecated.TellsHttpSolrClient.Builder
that created clients should set the following read timeout on all sockets.
-
-
-
Field Detail
-
httpClient
protected org.apache.http.client.HttpClient httpClient
Deprecated.
-
responseParser
protected ResponseParser responseParser
Deprecated.
-
connectionTimeoutMillis
protected Integer connectionTimeoutMillis
Deprecated.
-
socketTimeoutMillis
protected Integer socketTimeoutMillis
Deprecated.
-
-
Method Detail
-
getThis
public abstract B getThis()
Deprecated.The solution for the unchecked cast warning.
-
withHttpClient
public B withHttpClient(org.apache.http.client.HttpClient httpClient)
Deprecated.Provides aHttpClient
for the builder to use when creating clients.
-
withResponseParser
public B withResponseParser(ResponseParser responseParser)
Deprecated.Provides aResponseParser
for created clients to use when handling requests.
-
withConnectionTimeout
public B withConnectionTimeout(int connectionTimeoutMillis)
Deprecated.TellsHttpSolrClient.Builder
that created clients should obey the following timeout when connecting to Solr servers.For valid values see
RequestConfig.getConnectTimeout()
-
withSocketTimeout
public B withSocketTimeout(int socketTimeoutMillis)
Deprecated.TellsHttpSolrClient.Builder
that created clients should set the following read timeout on all sockets.For valid values see
RequestConfig.getSocketTimeout()
-
-