BewareMyPower commented on code in PR #139:
URL: https://github.com/apache/pulsar-client-cpp/pull/139#discussion_r1062215072
##########
include/pulsar/ProducerConfiguration.h:
##########
@@ -532,6 +532,18 @@ class PULSAR_PUBLIC ProducerConfiguration {
*/
ProducerAccessMode getAccessMode() const;
+ /**
+ * Use this configuration to automatically create an initial subscription
when creating a topic.
+ *
+ * If this field is not set, the initial subscription is not created.
+ */
+ ProducerConfiguration& setInitialSubscriptionName(const std::string&
initialSubscriptionName);
+
+ /**
+ * Get initial subscription name.
+ */
+ const std::string& getInitialSubscriptionName() const;
+
Review Comment:
These methods should not be exposed to users, see
https://github.com/apache/pulsar/pull/13355/files. We should access
`ProducerConfigurationImpl::initialSubscriptionName` directly.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]