Class RoundRobinKafkaPartitionProvider

java.lang.Object
org.flowable.eventregistry.spring.kafka.RoundRobinKafkaPartitionProvider
All Implemented Interfaces:
KafkaPartitionProvider

public class RoundRobinKafkaPartitionProvider extends Object implements KafkaPartitionProvider
Author:
Filip Hrisafov
  • Field Details

  • Constructor Details

    • RoundRobinKafkaPartitionProvider

      public RoundRobinKafkaPartitionProvider(List<Integer> partitions)
  • Method Details

    • determinePartition

      public Integer determinePartition(OutboundEvent<?> outboundEvent)
      Description copied from interface: KafkaPartitionProvider
      Determine the partition for the outbound event. Can be null if you want to use the Kafka default partitioner.
      Specified by:
      determinePartition in interface KafkaPartitionProvider
      Parameters:
      outboundEvent - the outbound event
      Returns:
      the partition to send to, or null if you want to use the Kafka default partioner