Partitioner function.
Determines which partition a message should be sent to.
The topic name.
The message key, or null.
Total number of partitions for the topic.
The partition index to send to.
Partitioner function.
Determines which partition a message should be sent to.