nodece commented on PR #20884:
URL: https://github.com/apache/pulsar/pull/20884#issuecomment-1818228389

   This PR has been updated. It provides a method to register and listen to 
custom configurations from the conf file, making them dynamic and enabling the 
use of pulsar-admin to get and set custom configurations.
   
   Additional information, for the namespace and topic levels, we can use the 
properties feature to hold your configuration:
   ```java
   // namespace level
   Map<String, String> namespaceProperties = new HashMap<>();
   namespaceProperties.put("key-1", "value-1");
   admin.namespaces().setProperties("YOUR-NAMESPACE-NAME", namespaceProperties);
   
   // namespace topic
   Map<String, String> topicProperties = new HashMap<>();
   topicProperties.put("key-1", "value-1");
   admin.topics().createNonPartitionedTopic("YOUR-TOPIC-NAME", topicProperties);
   ```
   
   


-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to