public class RoundRobinKafkaPartitionProvider extends Object implements KafkaPartitionProvider
| Modifier and Type | Field and Description |
|---|---|
protected AtomicInteger |
counter |
protected List<Integer> |
partitions |
| Constructor and Description |
|---|
RoundRobinKafkaPartitionProvider(List<Integer> partitions) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
determinePartition(org.flowable.eventregistry.api.OutboundEvent<?> outboundEvent)
Determine the partition for the outbound event.
|
protected final AtomicInteger counter
public Integer determinePartition(org.flowable.eventregistry.api.OutboundEvent<?> outboundEvent)
KafkaPartitionProvidernull if you want to use the Kafka default partitioner.determinePartition in interface KafkaPartitionProvideroutboundEvent - the outbound eventnull if you want to use the Kafka default partionerCopyright © 2022 Flowable. All rights reserved.