315157973 commented on a change in pull request #9225:
URL: https://github.com/apache/pulsar/pull/9225#discussion_r559564896



##########
File path: 
pulsar-client-admin/src/main/java/org/apache/pulsar/client/admin/Topics.java
##########
@@ -1604,7 +1604,15 @@ void setDelayedDeliveryPolicy(String topic
      * @throws PulsarAdminException
      *             Unexpected error
      */
-    int getMessageTTL(String topic) throws PulsarAdminException;
+    Integer getMessageTTL(String topic) throws PulsarAdminException;
+
+    /**
+     * Get message TTL applied for a topic.
+     * @param topic
+     * @return
+     * @throws PulsarAdminException
+     */
+    int getMessageTTLApplied(String topic) throws PulsarAdminException;

Review comment:
       How about we set `int getMessageTTLApplied(String topic)` to 
`@Deprecated`, and add a new `Integer getMessageTTL(String topic, boolean 
applied)`?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to