Class EventPayloadKafkaPartitionProvider
- java.lang.Object
-
- org.flowable.eventregistry.spring.kafka.EventPayloadKafkaPartitionProvider
-
- All Implemented Interfaces:
KafkaPartitionProvider
public class EventPayloadKafkaPartitionProvider extends Object implements KafkaPartitionProvider
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected StringeventField
-
Constructor Summary
Constructors Constructor Description EventPayloadKafkaPartitionProvider(String eventField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerdeterminePartition(org.flowable.eventregistry.api.OutboundEvent<?> outboundEvent)Determine the partition for the outbound event.protected IntegerparseValue(Object value)
-
-
-
Field Detail
-
eventField
protected final String eventField
-
-
Constructor Detail
-
EventPayloadKafkaPartitionProvider
public EventPayloadKafkaPartitionProvider(String eventField)
-
-
Method Detail
-
determinePartition
public Integer determinePartition(org.flowable.eventregistry.api.OutboundEvent<?> outboundEvent)
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
-
-