Interface KafkaPartitionProvider
-
- All Known Implementing Classes:
EventPayloadKafkaPartitionProvider,RoundRobinKafkaPartitionProvider
public interface KafkaPartitionProviderThis interface provides a way to determine the partition that needs to be sent to a particular topic.- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntegerdeterminePartition(org.flowable.eventregistry.api.OutboundEvent<?> outboundEvent)Determine the partition for the outbound event.
-
-
-
Method Detail
-
determinePartition
Integer determinePartition(org.flowable.eventregistry.api.OutboundEvent<?> outboundEvent)
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
-
-