# Uses of Class
org.apache.solr.client.solrj.impl.CloudSolrClient.Builder

Packages that use CloudSolrClient.Builder
Package
Description
org.apache.solr.client.solrj.impl
Implementations of some client API classes, and their friends.

## Uses of CloudSolrClient.Builder in org.apache.solr.client.solrj.impl

Methods in org.apache.solr.client.solrj.impl that return CloudSolrClient.Builder
Modifier and Type
Method
Description
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`canUseZkACLs(boolean canUseZkACLs)`
Whether to use the default ZK ACLs when building a ZK Client.
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`sendDirectUpdatesToAnyShardReplica()`
Tells `CloudSolrClient.Builder` that created clients can send updates to any shard replica (shard leaders and non-leaders).
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`sendDirectUpdatesToShardLeadersOnly()`
Tells `CloudSolrClient.Builder` that created clients should send direct updates to shard leaders only.
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`sendUpdatesOnlyToShardLeaders()`
Tells `CloudSolrClient.Builder` that created clients should be configured such that `CloudSolrClient.isUpdatesToLeaders()` returns `true`.
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`sendUpdatesToAnyReplica()`
Tells `CloudSolrClient.Builder` that created clients should be configured such that `CloudSolrClient.isUpdatesToLeaders()` returns `false`.
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`withCollectionCacheTtl(long timeToLive, TimeUnit unit)`
Sets the cache ttl for DocCollection Objects cached.
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`withDefaultCollection(String defaultCollection)`
Sets the default collection for request.
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`withHttpClient(HttpSolrClientBase httpSolrClient)`
Set the internal Solr HTTP client.
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`withHttpClientBuilder(HttpSolrClientBuilderBase<?,?> internalClientBuilder)`
If provided, the CloudSolrClient will build it's internal client using this builder (instead of the empty default one).
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`withInternalClientBuilder(HttpSolrClientBuilderBase<?,?> internalClientBuilder)`
Deprecated.
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`withParallelCacheRefreshes(int parallelCacheRefreshesLocks)`
Configures how many collection state refresh operations may run in parallel using a dedicated thread pool.
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`withParallelUpdates(boolean parallelUpdates)`
Tells `CloudSolrClient.Builder` whether created clients should send shard updates serially or in parallel
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`withRequestWriter(RequestWriter requestWriter)`
Provides a `RequestWriter` for created clients to use when handing requests.
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`withResponseParser(ResponseParser responseParser)`
Provides a `ResponseParser` for created clients to use when handling requests.
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`withRetryExpiryTime(long expiryTime, TimeUnit unit)`
This is the time to wait to re-fetch the state after getting the same state version from ZK
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`withZkClientTimeout(int zkClientTimeout, TimeUnit unit)`
Sets the Zk client session timeout
`CloudSolrClient.Builder`
CloudSolrClient.Builder.`withZkConnectTimeout(int zkConnectTimeout, TimeUnit unit)`
Sets the Zk connection timeout
Constructors in org.apache.solr.client.solrj.impl with parameters of type CloudSolrClient.Builder
Modifier
Constructor
Description
`protected`
`CloudHttp2SolrClient(CloudSolrClient.Builder builder)`
Create a new client object that connects to Zookeeper and is always aware of the SolrCloud state.