Class OutgoingKafkaRecordMetadata<K>
- java.lang.Object
-
- io.smallrye.reactive.messaging.kafka.OutgoingKafkaRecordMetadata<K>
-
- All Implemented Interfaces:
KafkaMessageMetadata<K>
public class OutgoingKafkaRecordMetadata<K> extends Object implements KafkaMessageMetadata<K>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K>
-
Constructor Summary
Constructors Constructor Description OutgoingKafkaRecordMetadata(String topic, K key, int partition, Instant timestamp, org.apache.kafka.common.header.Headers headers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <K> OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K>
builder()
org.apache.kafka.common.header.Headers
getHeaders()
K
getKey()
int
getPartition()
Instant
getTimestamp()
String
getTopic()
-
-
-
Method Detail
-
builder
public static <K> OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> builder()
-
getPartition
public int getPartition()
- Specified by:
getPartition
in interfaceKafkaMessageMetadata<K>
-
getTimestamp
public Instant getTimestamp()
- Specified by:
getTimestamp
in interfaceKafkaMessageMetadata<K>
-
getHeaders
public org.apache.kafka.common.header.Headers getHeaders()
- Specified by:
getHeaders
in interfaceKafkaMessageMetadata<K>
-
getTopic
public String getTopic()
- Specified by:
getTopic
in interfaceKafkaMessageMetadata<K>
-
getKey
public K getKey()
- Specified by:
getKey
in interfaceKafkaMessageMetadata<K>
-
-