Interface KafkaMessageKeyProvider<K>
- Type Parameters:
K
- The type of the record key
- All Known Implementing Classes:
EventPayloadKafkaMessageKeyProvider
public interface KafkaMessageKeyProvider<K>
This interface provides a way to determine the record key that needs to be sent for a particular message
- Author:
- Roman Saratz
-
Method Summary
Modifier and TypeMethodDescriptiondetermineMessageKey
(OutboundEvent<?> outboundEvent) Determine the record key for the outbound event.
-
Method Details
-
determineMessageKey
Determine the record key for the outbound event. Can benull
if you do not want to use a specific value.- Parameters:
outboundEvent
- the outbound event- Returns:
- the record key to use
-