How can we set retention time on topic level using Pulsar Admin in Java? #21761
Answered
by
alpreu
anijain-D11
asked this question in
Q&A
|
Below is the snippet to create topic in service: public void createTopic( I can't see any function to set Retention Time on the Topic level. The following method is deprecated. |
Answered by
alpreu
Dec 20, 2023
Replies: 1 comment
|
Hi Ani, |
0 replies
Answer selected by
merlimat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Ani,
Topic#setRetentionis deprecated, yes. You should useTopicPolicies#setRetentioninstead