public Integer partition() {
        return partition;
    }
@return The partition to which the record will be sent (or null if no partition was specified)
clients/src/main/java/org/apache/kafka/clients/producer/ProducerRecord.java