docs: public InvocationBuilder setReplicaIndex(int replicaIndex) {
          if (replicaIndex < 0 || replicaIndex >= InternalPartition.MAX_REPLICA_COUNT) {
              throw new IllegalArgumentException("Replica index is out of range [0-"
                      + (InternalPartition.MAX_REPLICA_COUNT - 1) + "]");
          }
          this.replicaIndex = replicaIndex;
          return this;
      }