Class RoundRobinKafkaPartitionProvider
java.lang.Object
org.flowable.eventregistry.spring.kafka.RoundRobinKafkaPartitionProvider
- All Implemented Interfaces:
KafkaPartitionProvider
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeterminePartition(OutboundEvent<?> outboundEvent) Determine the partition for the outbound event.
-
Field Details
-
partitions
-
counter
-
-
Constructor Details
-
RoundRobinKafkaPartitionProvider
-
-
Method Details
-
determinePartition
Description copied from interface:KafkaPartitionProviderDetermine the partition for the outbound event. Can benullif you want to use the Kafka default partitioner.- Specified by:
determinePartitionin interfaceKafkaPartitionProvider- Parameters:
outboundEvent- the outbound event- Returns:
- the partition to send to, or
nullif you want to use the Kafka default partioner
-