You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the latest release 0.11.0.0, Kafka's ProducerRecord allows adding headers in messages, would be good to have KafkaProducerRecord abstract out the same functionality at this client level.
/** * Creates a record to be sent to a specified topic and partition * * @paramtopic The topic the record will be appended to * @parampartition The partition to which the record should be sent * @paramkey The key that will be included in the record * @paramvalue The record contents * @paramheaders The headers that will be included in the record*/
public ProducerRecord(String topic, Integer partition, K key, V value, Iterable<Header> headers) {
this(topic, partition, null, key, value, headers);
}
The text was updated successfully, but these errors were encountered:
https://cwiki.apache.org/confluence/display/KAFKA/KIP-82+-+Add+Record+Headers
With the latest release 0.11.0.0, Kafka's
ProducerRecord
allows adding headers in messages, would be good to haveKafkaProducerRecord
abstract out the same functionality at this client level.The text was updated successfully, but these errors were encountered: