code: public HashConfigurationBuilder numSegments(int numSegments) {
        if (numSegments < 1) throw new IllegalArgumentException("numSegments cannot be less than 1");
        attributes.attribute(NUM_SEGMENTS).set(numSegments);
        return this;
     }
docs: Controls the total number of hash space segments (per cluster).
  
  <p>A hash space segment is the granularity for key distribution in the cluster: a node can own
  (or primary-own) one or more full segments, but not a fraction of a segment. As such, larger
  {@code numSegments} values will mean a more even distribution of keys between nodes.
  <p>On the other hand, the memory/bandwidth usage of the new consistent hash grows linearly with
  {@code numSegments}. So we recommend keeping {@code numSegments <= 10 * clusterSize}.
  
  @param numSegments the number of hash space segments. Must be strictly positive.