@FunctionalInterface public interface PartitionKeyStrategy<Message>
Modifier and Type | Method and Description |
---|---|
String |
computePartitionKey(Message message)
Computes a key from a message.
|
String computePartitionKey(Message message)
message
- The message to publish into a Kafka topic.