public static final class OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> extends Object
Constructor and Description |
---|
OutgoingKafkaRecordMetadataBuilder() |
Modifier and Type | Method and Description |
---|---|
OutgoingKafkaRecordMetadata<K> |
build() |
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> |
withHeaders(org.apache.kafka.common.header.Headers headers) |
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> |
withHeaders(List<org.apache.kafka.common.header.internals.RecordHeader> headers) |
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> |
withKey(K recordKey) |
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> |
withPartition(int partition) |
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> |
withTimestamp(Instant timestamp) |
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> |
withTopic(String topic) |
public OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> withTopic(String topic)
public OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> withKey(K recordKey)
public OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> withPartition(int partition)
public OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> withTimestamp(Instant timestamp)
public OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> withHeaders(org.apache.kafka.common.header.Headers headers)
public OutgoingKafkaRecordMetadata<K> build()
public OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder<K> withHeaders(List<org.apache.kafka.common.header.internals.RecordHeader> headers)
Copyright © 2018–2021 SmallRye. All rights reserved.