Change affinity property name; javadoc cleanup
@@ -24,7 +24,7 @@ public class LoadBalancer {
private static final Logger log = Logger.getLogger(LoadBalancer.class.getName());
- private static final CompoundName QUERY_NODE_GROUP_AFFINITY = new CompoundName("loadbalancer.group.affinity");
+ private static final CompoundName QUERY_NODE_GROUP_AFFINITY = new CompoundName("dispatch.group.affinity");
private final boolean isInternallyDispatchable;
private final List<GroupSchedule> scoreboard;
@@ -49,7 +49,7 @@ public class LoadBalancer {
* Select and allocate the search cluster group which is to be used for the provided query. Callers <b>must</b> call
* {@link #releaseGroup} symmetrically for each taken allocation.
*
- * @param query The query for which this allocation is made.
+ * @param query the query for which this allocation is made
* @return The node group to target, or <i>empty</i> if the internal dispatch logic cannot be used
*/
public Optional<Group> takeGroupForQuery(Query query) {
