Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There is one new method exposed on the partitioner interface.


Code Block
languagejava
   /**
    * Executes right before a new batch will be created. For example, if a sticky partitioner is used,
    * this method can change the chosen sticky partition for the new batch. 
    * @param topic The topic name
    * @param cluster The current cluster metadata
    * @param prevPartition The partition of the batch that was just completed
    */
  default public void batchCompleted(String topic, Cluster cluster, int prevPartition) {
  }

...