chia7712 commented on code in PR #20170:
URL: https://github.com/apache/kafka/pull/20170#discussion_r2242802776


##########
clients/src/main/java/org/apache/kafka/clients/producer/Partitioner.java:
##########
@@ -45,4 +45,7 @@ public interface Partitioner extends Configurable, Closeable {
      * This is called when partitioner is closed.
      */
     void close();
+
+    default void onNewBatch(String topic, Cluster cluster, int prevPartition) {

Review Comment:
   please consider using "casting" to invoke `RoundRobinPartitioner#onNewBatch` 
if needs



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to