@Override
        public String toString() {
            return "DefaultPartitionView{" +
                    "replicas=" + replicas +
                    ", leader=" + leader +
                    '}';
        }
View of a partition used by {@link ReplicaSelector} to determine a preferred replica.
clients/src/main/java/org/apache/kafka/common/replica/PartitionView.java