public class OutgoingKafkaRecordMetadata<K> extends Object implements KafkaMessageMetadata<K>
Modifier and Type | Class and Description |
---|---|
static class |
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> |
Constructor and Description |
---|
OutgoingKafkaRecordMetadata(String topic,
K key,
int partition,
Instant timestamp,
org.apache.kafka.common.header.Headers headers) |
Modifier and Type | Method and Description |
---|---|
static <K> OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> |
builder() |
org.apache.kafka.common.header.Headers |
getHeaders() |
K |
getKey() |
int |
getPartition() |
Instant |
getTimestamp() |
String |
getTopic() |
public static <K> OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> builder()
public int getPartition()
getPartition
in interface KafkaMessageMetadata<K>
public Instant getTimestamp()
getTimestamp
in interface KafkaMessageMetadata<K>
public org.apache.kafka.common.header.Headers getHeaders()
getHeaders
in interface KafkaMessageMetadata<K>
public String getTopic()
getTopic
in interface KafkaMessageMetadata<K>
public K getKey()
getKey
in interface KafkaMessageMetadata<K>
Copyright © 2018–2021 SmallRye. All rights reserved.