public int getPartition() {
            return partition;
        }
Callbacks that are called by the RecordAccumulator append functions:
 - user callback
 - interceptor callbacks
 - partition callback
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java