Uses of Class
org.apache.solr.client.solrj.impl.CloudSolrClient.Builder
Packages that use CloudSolrClient.Builder
Package
Description
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.BuilderModifier and TypeMethodDescriptionCloudSolrClient.Builder.canUseZkACLs(boolean canUseZkACLs) Whether to use the default ZK ACLs when building a ZK Client.CloudSolrClient.Builder.sendDirectUpdatesToAnyShardReplica()TellsCloudSolrClient.Builderthat created clients can send updates to any shard replica (shard leaders and non-leaders).CloudSolrClient.Builder.sendDirectUpdatesToShardLeadersOnly()TellsCloudSolrClient.Builderthat created clients should send direct updates to shard leaders only.CloudSolrClient.Builder.sendUpdatesOnlyToShardLeaders()TellsCloudSolrClient.Builderthat created clients should be configured such thatCloudSolrClient.isUpdatesToLeaders()returnstrue.CloudSolrClient.Builder.sendUpdatesToAnyReplica()TellsCloudSolrClient.Builderthat created clients should be configured such thatCloudSolrClient.isUpdatesToLeaders()returnsfalse.CloudSolrClient.Builder.withCollectionCacheTtl(long timeToLive, TimeUnit unit) Sets the cache ttl for DocCollection Objects cached.CloudSolrClient.Builder.withDefaultCollection(String defaultCollection) Sets the default collection for request.CloudSolrClient.Builder.withHttpClient(HttpSolrClientBase httpSolrClient) Set the internal Solr HTTP client.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.withInternalClientBuilder(HttpSolrClientBuilderBase<?, ?> internalClientBuilder) Deprecated.CloudSolrClient.Builder.withParallelCacheRefreshes(int parallelCacheRefreshesLocks) Configures how many collection state refresh operations may run in parallel using a dedicated thread pool.CloudSolrClient.Builder.withParallelUpdates(boolean parallelUpdates) TellsCloudSolrClient.Builderwhether created clients should send shard updates serially or in parallelCloudSolrClient.Builder.withRequestWriter(RequestWriter requestWriter) Provides aRequestWriterfor created clients to use when handing requests.CloudSolrClient.Builder.withResponseParser(ResponseParser responseParser) Provides aResponseParserfor created clients to use when handling requests.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 ZKCloudSolrClient.Builder.withZkClientTimeout(int zkClientTimeout, TimeUnit unit) Sets the Zk client session timeoutCloudSolrClient.Builder.withZkConnectTimeout(int zkConnectTimeout, TimeUnit unit) Sets the Zk connection timeoutConstructors in org.apache.solr.client.solrj.impl with parameters of type CloudSolrClient.BuilderModifierConstructorDescriptionprotectedCreate a new client object that connects to Zookeeper and is always aware of the SolrCloud state.