public class IncomingKafkaRecordMetadata<K,T> extends Object implements KafkaMessageMetadata<K>
Constructor and Description |
---|
IncomingKafkaRecordMetadata(org.apache.kafka.clients.consumer.ConsumerRecord<K,T> record) |
Modifier and Type | Method and Description |
---|---|
org.apache.kafka.common.header.Headers |
getHeaders() |
K |
getKey() |
long |
getOffset() |
int |
getPartition() |
org.apache.kafka.clients.consumer.ConsumerRecord<K,T> |
getRecord() |
Instant |
getTimestamp() |
org.apache.kafka.common.record.TimestampType |
getTimestampType() |
String |
getTopic() |
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.