K - The Kafka record key typeT - The payload typepublic class IncomingKafkaRecordMetadata<K,T> extends Object implements KafkaMessageMetadata<K>
| Constructor and Description |
|---|
IncomingKafkaRecordMetadata(org.apache.kafka.clients.consumer.ConsumerRecord<K,T> record)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.kafka.common.header.Headers |
getHeaders()
Get the Kafka headers
|
K |
getKey()
Get the key
|
long |
getOffset()
Get the offset
|
int |
getPartition()
Get the partition
|
org.apache.kafka.clients.consumer.ConsumerRecord<K,T> |
getRecord()
Get the underlying Kafka ConsumerRecord
|
Instant |
getTimestamp()
Get the timestamp
|
org.apache.kafka.common.record.TimestampType |
getTimestampType()
Get the timestamp type
|
String |
getTopic()
Get the topic
|
public String getTopic()
getTopic in interface KafkaMessageMetadata<K>public K getKey()
getKey in interface KafkaMessageMetadata<K>public int getPartition()
getPartition in interface KafkaMessageMetadata<K>public Instant getTimestamp()
getTimestamp in interface KafkaMessageMetadata<K>public org.apache.kafka.common.record.TimestampType getTimestampType()
public long getOffset()
public org.apache.kafka.common.header.Headers getHeaders()
getHeaders in interface KafkaMessageMetadata<K>Copyright © 2018–2021 SmallRye. All rights reserved.