code: private void resetRoundRobin(String preferredNodeIdPrefix) {
          DisqueNode previous = null; // remember the previous node because the offset is a marker to start with the next
          // element
          for (DisqueNode disqueNode : getNodes()) {
              if (disqueNode.getNodeId().startsWith(preferredNodeIdPrefix)) {
                  roundRobin = new RoundRobin<DisqueNode>(getNodes(), previous);
                  return;
              }
              previous = disqueNode;
          }
      }
docs: Reset the {@link RoundRobin} to start with the node matching the {@code preferredNodeIdPrefix}.
  
  @param preferredNodeIdPrefix the id prefix of the preferred node