jiazhai commented on a change in pull request #4366: [cpp client]support key
shared for cpp client
URL: https://github.com/apache/pulsar/pull/4366#discussion_r287553868
##########
File path: pulsar-client-cpp/include/pulsar/Message.h
##########
@@ -110,6 +110,20 @@ class PULSAR_PUBLIC Message {
const std::string& getPartitionKey() const;
bool hasPartitionKey() const;
+ /**
+ * Get the ordering key of the message
+ *
+ * @return the ordering key of the message
+ */
+ const std::string& getOrderingKey() const;
+ /**
Review comment:
nit: add a new line is better
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services