Class IncomingKafkaRecordMetadata<K,T>
- java.lang.Object
-
- io.smallrye.reactive.messaging.kafka.IncomingKafkaRecordMetadata<K,T>
-
- All Implemented Interfaces:
KafkaMessageMetadata<K>
public class IncomingKafkaRecordMetadata<K,T> extends Object implements KafkaMessageMetadata<K>
-
-
Constructor Summary
Constructors Constructor Description IncomingKafkaRecordMetadata(io.vertx.mutiny.kafka.client.consumer.KafkaConsumerRecord<K,T> record)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.kafka.common.header.Headers
getHeaders()
K
getKey()
long
getOffset()
int
getPartition()
io.vertx.mutiny.kafka.client.consumer.KafkaConsumerRecord<K,T>
getRecord()
Instant
getTimestamp()
org.apache.kafka.common.record.TimestampType
getTimestampType()
String
getTopic()
-
-
-
Method Detail
-
getTopic
public String getTopic()
- Specified by:
getTopic
in interfaceKafkaMessageMetadata<K>
-
getKey
public K getKey()
- Specified by:
getKey
in interfaceKafkaMessageMetadata<K>
-
getPartition
public int getPartition()
- Specified by:
getPartition
in interfaceKafkaMessageMetadata<K>
-
getTimestamp
public Instant getTimestamp()
- Specified by:
getTimestamp
in interfaceKafkaMessageMetadata<K>
-
getTimestampType
public org.apache.kafka.common.record.TimestampType getTimestampType()
-
getOffset
public long getOffset()
-
getHeaders
public org.apache.kafka.common.header.Headers getHeaders()
- Specified by:
getHeaders
in interfaceKafkaMessageMetadata<K>
-
-