Interface KafkaPartitionProvider
- All Known Implementing Classes:
EventPayloadKafkaPartitionProvider,RoundRobinKafkaPartitionProvider
public interface KafkaPartitionProvider
This interface provides a way to determine the partition that needs to be sent to a particular topic.
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptiondeterminePartition(OutboundEvent<?> outboundEvent) Determine the partition for the outbound event.
-
Method Details
-
determinePartition
Determine the partition for the outbound event. Can benullif you want to use the Kafka default partitioner.- Parameters:
outboundEvent- the outbound event- Returns:
- the partition to send to, or
nullif you want to use the Kafka default partioner
-