/**
   * Check if the replica count per ts matches the expected, returns true if it does within
   * timeoutMs, false otherwise.
   * TODO(Rahul): follow similar style for this type of function will do with affinitized
   * leaders tests.
   * @param timeoutMs number of milliseconds before timing out.
   * @param table the table to wait for load balancing.
   * @param replicaMapExpected the expected map between cluster uuid and live, read replica count.
   * @return true if the read only replica count for the table matches the expected within the
   * expected time frame, false otherwise.
   */
public boolean waitForExpectedReplicaMap(final long timeoutMs, YBTable table,
                                            Map<String, List<List<Integer>>> replicaMapExpected) {
    Condition replicaMapCondition = new ReplicaMapCondition(table, replicaMapExpected, timeoutMs);
    return waitForCondition(replicaMapCondition, timeoutMs);
  }
public boolean waitForExpectedReplicaMap(final long timeoutMs, YBTable table,
Map<String, List<List<Integer>>> replicaMapExpected) {
Condition replicaMapCondition = new ReplicaMapCondition(table, replicaMapExpected, timeoutMs);
return waitForCondition(replicaMapCondition, timeoutMs);
}
public boolean waitForExpectedReplicaMap(final long timeoutMs, YBTable table,
Map<String, List<List<Integer>>> replicaMapExpected) {
Condition replicaMapCondition = new ReplicaMapCondition(table, replicaMapExpected, timeoutMs);
return waitForCondition(replicaMapCondition, timeoutMs);
}
public boolean waitForExpectedReplicaMap(final long timeoutMs, YBTable table,
Map<String, List<List<Integer>>> replicaMapExpected) {
Condition replicaMapCondition = new ReplicaMapCondition(table, replicaMapExpected, timeoutMs);
return waitForCondition(replicaMapCondition, timeoutMs);
}