You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/07/13 09:07:00 UTC

[jira] [Commented] (KAFKA-7059) Offer new constructor on ProducerRecord

    [ https://issues.apache.org/jira/browse/KAFKA-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16542751#comment-16542751 ] 

ASF GitHub Bot commented on KAFKA-7059:
---------------------------------------

matzew opened a new pull request #5228: KAFKA-7059 Offer new constructor on ProducerRecord
URL: https://github.com/apache/kafka/pull/5228
 
 
   Signed-off-by: Matthias Wessendorf <ma...@apache.org>
   
   Done for https://issues.apache.org/jira/browse/KAFKA-7059 
   
   When developers are creating a ProducerRecord, with custom headers, it currently requires the usage of a constructor with a slightly longer arguments list.
   
   This is OK, but it would be handy or more convenient if there was a ctor, like:
   
   ```java
   public ProducerRecord(String topic, K key, V value, Iterable<Header> headers)
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Offer new constructor on ProducerRecord 
> ----------------------------------------
>
>                 Key: KAFKA-7059
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7059
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Matthias Weßendorf
>            Priority: Trivial
>
> creating a ProducerRecord, with custom headers requires usage of a constructor with a slightly longer arguments list.
>  
> It would be handy or more convenient if there was a ctor, like:
> {code}
> public ProducerRecord(String topic, K key, V value, Iterable<Header> headers)
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)