Class LBSolrClient.Req
- java.lang.Object
-
- org.apache.solr.client.solrj.impl.LBSolrClient.Req
-
- Enclosing class:
- LBSolrClient
public static class LBSolrClient.Req extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
numDeadServersToTry
protected SolrRequest<?>
request
protected List<String>
servers
-
Constructor Summary
Constructors Constructor Description Req(SolrRequest<?> request, Collection<LBSolrClient.Endpoint> servers)
Req(SolrRequest<?> request, Collection<LBSolrClient.Endpoint> servers, Integer numServersToTry)
Req(SolrRequest<?> request, List<String> servers)
Deprecated.useReq(SolrRequest, Collection)
insteadReq(SolrRequest<?> request, List<String> servers, Integer numServersToTry)
Deprecated.useReq(SolrRequest, Collection, Integer)
instead
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getNumDeadServersToTry()
Integer
getNumServersToTry()
SolrRequest<?>
getRequest()
List<String>
getServers()
Deprecated.will be replaced with a similar method in 10.0 that returnsLBSolrClient.Endpoint
instances instead.void
setNumDeadServersToTry(int numDeadServersToTry)
-
-
-
Field Detail
-
request
protected SolrRequest<?> request
-
numDeadServersToTry
protected int numDeadServersToTry
-
-
Constructor Detail
-
Req
@Deprecated public Req(SolrRequest<?> request, List<String> servers)
Deprecated.useReq(SolrRequest, Collection)
instead
-
Req
public Req(SolrRequest<?> request, Collection<LBSolrClient.Endpoint> servers)
-
Req
@Deprecated public Req(SolrRequest<?> request, List<String> servers, Integer numServersToTry)
Deprecated.useReq(SolrRequest, Collection, Integer)
instead
-
Req
public Req(SolrRequest<?> request, Collection<LBSolrClient.Endpoint> servers, Integer numServersToTry)
-
-
Method Detail
-
getRequest
public SolrRequest<?> getRequest()
-
getServers
@Deprecated public List<String> getServers()
Deprecated.will be replaced with a similar method in 10.0 that returnsLBSolrClient.Endpoint
instances instead.
-
getNumDeadServersToTry
public int getNumDeadServersToTry()
- Returns:
- the number of dead servers to try if there are no live servers left
-
setNumDeadServersToTry
public void setNumDeadServersToTry(int numDeadServersToTry)
- Parameters:
numDeadServersToTry
- The number of dead servers to try if there are no live servers left. Defaults to the number of servers in this request.
-
getNumServersToTry
public Integer getNumServersToTry()
-
-