@Override
    public String toString() {
        return "ProducerBatch(topicPartition=" + topicPartition + ", recordCount=" + recordCount + ")";
    }
A callback and the associated FutureRecordMetadata argument to pass to it.
clients/src/main/java/org/apache/kafka/clients/producer/internals/ProducerBatch.java