Package io.micronaut.configuration.kafka
Class KafkaMessage<K,V>
java.lang.Object
io.micronaut.configuration.kafka.KafkaMessage<K,V>
- Type Parameters:
K- The key typeV- The value type
Message payload representation.
- Since:
- 4.1.0
- Author:
- Denis Stepanov
-
Constructor Details
-
KafkaMessage
public KafkaMessage(@Nullable String topic, @Nullable K key, @Nullable V body, @Nullable Integer partition, @Nullable Long timestamp, @Nullable Map<String, Object> headers) The default constructor.- Parameters:
topic- The topickey- The keybody- The bodypartition- The partitiontimestamp- The timestampheaders- The headers
-
-
Method Details
-
getTopic
-
getKey
-
getBody
-
getPartition
-
getTimestamp
-
getHeaders
-