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:KafkaPartitionProvider
Determine the partition for the outbound event. Can benull
if you want to use the Kafka default partitioner.- Specified by:
determinePartition
in interfaceKafkaPartitionProvider
- Parameters:
outboundEvent
- the outbound event- Returns:
- the partition to send to, or
null
if you want to use the Kafka default partioner
-