Why PersistentTopicInternalStats don't provide getter/setter method? #18481
Answered
by
michaeljmarshall
crossoverJie
asked this question in
Q&A
-
When I am using the admin API, I find that there is no getter/setter method for the returned data, and I would like to know the reason for this design. The first impression is that it is not Java-like. |
Beta Was this translation helpful? Give feedback.
Answered by
michaeljmarshall
Nov 15, 2022
Replies: 1 comment 1 reply
-
Seems like an oversight to me. There could definitely be getter methods for the fields in those classes, but I don't think we need setter methods. Similarly, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
crossoverJie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems like an oversight to me. There could definitely be getter methods for the fields in those classes, but I don't think we need setter methods. Similarly,
org.apache.pulsar.common.policies.data.PartitionedTopicStats
only has getters.