private void saveReplicaBrokers(PartitionMetadata partitionMetadata) {
if (partitionMetadata != null) {
replicaBrokers.clear();
for (kafka.cluster.Broker replica : partitionMetadata.replicas()) {
replicaBrokers.add(new KafkaHost(replica.host(), replica.port()));
}
}
}