merlimat commented on a change in pull request #1996: Cpp client: add 
multiTopicsConsumer
URL: https://github.com/apache/incubator-pulsar/pull/1996#discussion_r196843280
 
 

 ##########
 File path: pulsar-client-cpp/include/pulsar/Message.h
 ##########
 @@ -46,6 +46,16 @@ class Message {
 
     Message();
 
+    /**
+     * Only for MultiTopicsConsumer to get a valid topicName
+     */
+    std::string& getTopicName() const;
 
 Review comment:
   In a single topic, we should have the information as well, so we should 
restrict this method only for the `MultiTopicsConsumer` case

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to