Class LBSolrClient.Req
java.lang.Object
org.apache.solr.client.solrj.impl.LBSolrClient.Req
- Enclosing class:
LBSolrClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<LBSolrClient.Endpoint> protected intprotected SolrRequest<?> -
Constructor Summary
ConstructorsConstructorDescriptionReq(SolrRequest<?> request, Collection<LBSolrClient.Endpoint> endpoints) Req(SolrRequest<?> request, Collection<LBSolrClient.Endpoint> endpoints, Integer numServersToTry) -
Method Summary
Modifier and TypeMethodDescriptionintSolrRequest<?> voidsetNumDeadServersToTry(int numDeadServersToTry)
-
Field Details
-
request
-
endpoints
-
numDeadServersToTry
protected int numDeadServersToTry
-
-
Constructor Details
-
Req
-
Req
public Req(SolrRequest<?> request, Collection<LBSolrClient.Endpoint> endpoints, Integer numServersToTry)
-
-
Method Details
-
getRequest
-
getEndpoints
-
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
-