-
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder.addHeaders(org.apache.kafka.common.header.internals.RecordHeader... headers)
Add headers for the Kafka record
OutgoingKafkaRecordMetadata.builder()
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder.withHeaders(List<org.apache.kafka.common.header.internals.RecordHeader> headers)
Specify the headers for the Kafka record
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder.withHeaders(org.apache.kafka.common.header.Headers headers)
Specify headers for the Kafka record
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder.withKey(K recordKey)
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder.withPartition(int partition)
In most cases Kafka's partitioner should be used to chose the Kafka partition.
Specify the timestamp for the Kafka record
OutgoingKafkaRecordMetadata.OutgoingKafkaRecordMetadataBuilder.withTopic(String topic)
By default the hardcoded topic in the configuration is used.