public short replicationFactor() {
        return replicationFactor.orElse(CreateTopicsRequest.NO_REPLICATION_FACTOR);
    }
The replication factor for the new topic or -1 if a replica assignment has been specified.
clients/src/main/java/org/apache/kafka/clients/admin/NewTopic.java