zhaijack commented on a change in pull request #1103: PIP-13-1/3: Provide `TopicsConsumer` to consume from several topics under same namespace URL: https://github.com/apache/incubator-pulsar/pull/1103#discussion_r167914515
########## File path: pulsar-client/src/main/java/org/apache/pulsar/client/api/Message.java ########## @@ -124,4 +124,14 @@ * @return the key of the message */ String getKey(); + + /** + * Get the topic name of this message. + * This is mainly for TopicsConsumerImpl to identify a message belongs to which topic. + * + * @return the topic name + */ + default String getTopicName() { Review comment: thanks. will change it. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services