[
https://issues.apache.org/jira/browse/KAFKA-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13950775#comment-13950775
]
schandr commented on KAFKA-1345:
--------------------------------
I have a use case where my application produces messages to the kafka topics.
External applications need a way to get the messages from these topics. So we
are providing a service to send those messages. When external applications
initiates a connection, I am creating the consumerconnector(one consumergroup
per external application). When the external application initiate the destroy
connection, i should be able to look up the consumerconnector using the group
id and initiate a shutdown, since the service will be serving multiple requests.
I can think of storing the consumerconnector instances in a map per
request....but was wondering if there is a way i can just pass the
consumergroupid and initiate the shutdown.
> java API to shutdown the connector by using a consumergroup id
> --------------------------------------------------------------
>
> Key: KAFKA-1345
> URL: https://issues.apache.org/jira/browse/KAFKA-1345
> Project: Kafka
> Issue Type: New Feature
> Reporter: schandr
>
> Is there a way to close the consumerIterator(stream), clean up the associated
> threads by doing a look up on the consumerGroupId? This would help in use
> cases where the consumption and sending happens in different threads with
> different protocols. And if the sending thread is shutdown, the sending
> thread might want to close the consumption thread.
--
This message was sent by Atlassian JIRA
(v6.2#6252)