GitHub user beyondyinjl2 added a comment to the discussion: How to dynamically 
produce and consume topic data

For example, first subscribe to topic:persistent://public/default/my-topic:
Consumer consumer = client.newConsumer()
.topic("persistent://public/default/my-topic")
                     .subscriptionName("my-subscription")
.subscribe();
Then I want to dynamically subscribe to other topics: 
persistent://public/default/aaa or persistent://public/mynamesapce/bbb without 
restarting the service

GitHub link: 
https://github.com/apache/pulsar/discussions/18853#discussioncomment-4352691

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@pulsar.apache.org

Reply via email to