Class EventPayloadKafkaMessageKeyProvider
- java.lang.Object
-
- org.flowable.eventregistry.spring.kafka.payload.EventPayloadKafkaMessageKeyProvider
-
- All Implemented Interfaces:
KafkaMessageKeyProvider<Object>
public class EventPayloadKafkaMessageKeyProvider extends Object implements KafkaMessageKeyProvider<Object>
- Author:
- Roman Saratz
-
-
Field Summary
Fields Modifier and Type Field Description protected StringeventField
-
Constructor Summary
Constructors Constructor Description EventPayloadKafkaMessageKeyProvider(String eventField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectdetermineMessageKey(org.flowable.eventregistry.api.OutboundEvent<?> eventInstance)Determine the record key for the outbound event.
-
-
-
Field Detail
-
eventField
protected final String eventField
-
-
Constructor Detail
-
EventPayloadKafkaMessageKeyProvider
public EventPayloadKafkaMessageKeyProvider(String eventField)
-
-
Method Detail
-
determineMessageKey
public Object determineMessageKey(org.flowable.eventregistry.api.OutboundEvent<?> eventInstance)
Description copied from interface:KafkaMessageKeyProviderDetermine the record key for the outbound event. Can benullif you do not want to use a specific value.- Specified by:
determineMessageKeyin interfaceKafkaMessageKeyProvider<Object>- Parameters:
eventInstance- the outbound event- Returns:
- the record key to use
-
-