[ https://issues.apache.org/jira/browse/KAFKA-2403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14660911#comment-14660911 ]
Jason Gustafson commented on KAFKA-2403: ---------------------------------------- No hurry to get this checked in, but I thought I'd submit an initial patch. Would be nice to get some feedback to see if this is what people had in mind for this API. > Expose offset commit metadata in new consumer > --------------------------------------------- > > Key: KAFKA-2403 > URL: https://issues.apache.org/jira/browse/KAFKA-2403 > Project: Kafka > Issue Type: Sub-task > Reporter: Jason Gustafson > Assignee: Jason Gustafson > Priority: Minor > > The offset commit protocol supports the ability to add user metadata to > commits, but this is not yet exposed in the new consumer API. The > straightforward way to add it is to create a container for the offset and > metadata and adjust the KafkaConsumer API accordingly. > {code} > OffsetMetadata { > long offset; > String metadata; > } > KafkaConsumer { > commit(Map<TopicPartition, OffsetMetadata>) > OffsetMetadata committed(TopicPartition) > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)