public abstract class SolrClientBuilder<B extends SolrClientBuilder<B>> extends Object
Modifier and Type | Field and Description |
---|---|
protected Integer |
connectionTimeoutMillis |
protected org.apache.http.client.HttpClient |
httpClient |
protected ResponseParser |
responseParser |
protected Integer |
socketTimeoutMillis |
Constructor and Description |
---|
SolrClientBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract B |
getThis()
The solution for the unchecked cast warning.
|
B |
withConnectionTimeout(int connectionTimeoutMillis)
Tells
HttpSolrClient.Builder that created clients should obey the following timeout when connecting to Solr servers. |
B |
withHttpClient(org.apache.http.client.HttpClient httpClient)
Provides a
HttpClient for the builder to use when creating clients. |
B |
withResponseParser(ResponseParser responseParser)
Provides a
ResponseParser for created clients to use when handling requests. |
B |
withSocketTimeout(int socketTimeoutMillis)
Tells
HttpSolrClient.Builder that created clients should set the following read timeout on all sockets. |
protected org.apache.http.client.HttpClient httpClient
protected ResponseParser responseParser
protected Integer connectionTimeoutMillis
protected Integer socketTimeoutMillis
public abstract B getThis()
public B withHttpClient(org.apache.http.client.HttpClient httpClient)
HttpClient
for the builder to use when creating clients.public B withResponseParser(ResponseParser responseParser)
ResponseParser
for created clients to use when handling requests.public B withConnectionTimeout(int connectionTimeoutMillis)
HttpSolrClient.Builder
that created clients should obey the following timeout when connecting to Solr servers.
For valid values see RequestConfig.getConnectTimeout()
public B withSocketTimeout(int socketTimeoutMillis)
HttpSolrClient.Builder
that created clients should set the following read timeout on all sockets.
For valid values see RequestConfig.getSocketTimeout()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.