You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/08/01 02:36:28 UTC

[GitHub] [pulsar] become-nice opened a new issue #7717: How can I reuse consumer?

become-nice opened a new issue #7717:
URL: https://github.com/apache/pulsar/issues/7717


   If I want to re-subscription some topics for an exist consumer, how can I do it ? I have read the interface of python and C++ client code, but I can't find any interface to do this function. If I use unsubscription interface, it's like that I can't use this consumer anymore. So why not  just close it? Maybe it is my fault, because I don't konw how to use! So can you provide me with some ways or some interface to solve this problem.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [pulsar] MarvinCai commented on issue #7717: How can I reuse consumer?

Posted by GitBox <gi...@apache.org>.
MarvinCai commented on issue #7717:
URL: https://github.com/apache/pulsar/issues/7717#issuecomment-731953280


   @become-nice 
   Hi, are you using python or c++ client only or java is also fine?
   For java there's already method to do that [subscribeToAdditionalTopic](https://github.com/apache/pulsar/blob/72b9f5d96ca19c358afd83952eed7ab7ebe61e5d/pulsar-client/src/main/java/org/apache/pulsar/client/impl/MultiTopicsConsumerImpl.java#L883), [unSubscribeFromTopic](https://github.com/apache/pulsar/blob/72b9f5d96ca19c358afd83952eed7ab7ebe61e5d/pulsar-client/src/main/java/org/apache/pulsar/client/impl/MultiTopicsConsumerImpl.java#L1042)
   For c++ multipleTopicsConsumer we actually also have the ability to subscribe to / unsubscribe from additional topics.
   We might able to expose it if necessary.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [pulsar] sijie commented on issue #7717: How can I reuse consumer?

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #7717:
URL: https://github.com/apache/pulsar/issues/7717#issuecomment-667761202


   @become-nice Currently the Multi-Topic consumer is able to support adding and removing topics. But the functionality is not exposed to the API. 
   
   If you are interested in contributing to this feature, feel free to take the issue and make a pull request.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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