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

 ##########
 File path: pulsar-client-cpp/lib/MessageImpl.h
 ##########
 @@ -43,13 +43,24 @@ class MessageImpl {
     SharedBuffer payload;
     MessageId messageId;
     ClientConnection* cnx_;
+    std::string topicName_;
 
     const std::string& getPartitionKey() const;
     bool hasPartitionKey() const;
 
     uint64_t getPublishTimestamp() const;
     uint64_t getEventTimestamp() const;
 
+    /**
+     * Only for MultiTopicsConsumer to get a valid topicName
 
 Review comment:
   There's no reason this can't work for non-multitopic consumers also. In 
fact, there was a request for this from a user.

----------------------------------------------------------------
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