dsmiley commented on code in PR #1248:
URL: https://github.com/apache/solr/pull/1248#discussion_r1059533965
##########
solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java:
##########
@@ -1222,11 +1222,22 @@ public boolean isDirectUpdatesToLeadersOnly() {
/**
* If caches are expired they are refreshed after acquiring a lock. use this
to set the number of
* locks
+ *
+ * @deprecated use {@link
CloudHttp2SolrClient.Builder#setParallelCacheRefreshes(int)} instead
*/
+ @Deprecated
public void setParallelCacheRefreshes(int n) {
locks = objectList(n);
}
+ /**
+ * If caches are expired they are refreshed after acquiring a lock. This
method sets the number of
+ * locks. It is used by the Builder only.
+ */
+ void setParallelCacheRefreshesLocks(int parallelCacheRefreshesLocks) {
+ locks = objectList(parallelCacheRefreshesLocks);
+ }
+
Review Comment:
> I think I would prefer having a method that takes an 'int' and hides away
the implementation.
That exists in this PR -- `Builder.setParallelCacheRefreshes`. This makes
the method I'm commenting on,
`Builder.setParallelCacheRefreshesLocks` more dubious as to if it's
needed/useful.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]