Class LBHttp2SolrClient.Builder
- java.lang.Object
-
- org.apache.solr.client.solrj.impl.LBHttp2SolrClient.Builder
-
- Enclosing class:
- LBHttp2SolrClient
public static class LBHttp2SolrClient.Builder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdefaultCollection
-
Constructor Summary
Constructors Constructor Description Builder(Http2SolrClient http2Client, String... baseSolrUrls)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LBHttp2SolrClientbuild()LBHttp2SolrClient.BuildersetAliveCheckInterval(int aliveCheckInterval, TimeUnit unit)LBHttpSolrServer keeps pinging the dead servers at fixed interval to find if it is alive.LBHttp2SolrClient.BuilderwithDefaultCollection(String defaultCoreOrCollection)Sets a default for core or collection based requests.
-
-
-
Field Detail
-
defaultCollection
protected String defaultCollection
-
-
Constructor Detail
-
Builder
public Builder(Http2SolrClient http2Client, String... baseSolrUrls)
-
-
Method Detail
-
setAliveCheckInterval
public LBHttp2SolrClient.Builder setAliveCheckInterval(int aliveCheckInterval, TimeUnit unit)
LBHttpSolrServer keeps pinging the dead servers at fixed interval to find if it is alive. Use this to set that interval- Parameters:
aliveCheckInterval- how often to ping for aliveness
-
withDefaultCollection
public LBHttp2SolrClient.Builder withDefaultCollection(String defaultCoreOrCollection)
Sets a default for core or collection based requests.
-
build
public LBHttp2SolrClient build()
-
-