This is an automated email from the ASF dual-hosted git repository. penghui pushed a commit to branch branch-2.10 in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 4ad4bd85544a050d90cafa868092d26dd1a8198c Author: JiangHaiting <[email protected]> AuthorDate: Mon Apr 25 09:54:10 2022 +0800 Fix typo and doc in TopicPolies client api (#15293) (cherry picked from commit 14ba6c4570e10d800cc2ce7c7694a97de704616f) --- .../apache/pulsar/client/admin/TopicPolicies.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pulsar-client-admin-api/src/main/java/org/apache/pulsar/client/admin/TopicPolicies.java b/pulsar-client-admin-api/src/main/java/org/apache/pulsar/client/admin/TopicPolicies.java index 5e358095919..1dfb79d7ba0 100644 --- a/pulsar-client-admin-api/src/main/java/org/apache/pulsar/client/admin/TopicPolicies.java +++ b/pulsar-client-admin-api/src/main/java/org/apache/pulsar/client/admin/TopicPolicies.java @@ -825,7 +825,7 @@ public interface TopicPolicies { /** * Set subscription-message-dispatch-rate for the topic. * <p/> - * Subscriptions under this namespace can dispatch this many messages per second + * Subscriptions of this topic can dispatch this many messages per second * * @param topic * @param dispatchRate @@ -838,7 +838,7 @@ public interface TopicPolicies { /** * Set subscription-message-dispatch-rate for the topic asynchronously. * <p/> - * Subscriptions under this namespace can dispatch this many messages per second. + * Subscriptions of this topic can dispatch this many messages per second. * * @param topic * @param dispatchRate @@ -849,31 +849,31 @@ public interface TopicPolicies { /** * Get applied subscription-message-dispatch-rate. * <p/> - * Subscriptions under this namespace can dispatch this many messages per second. + * Subscriptions of this topic can dispatch this many messages per second. * - * @param namespace + * @param topic * @returns DispatchRate * number of messages per second * @throws PulsarAdminException * Unexpected error */ - DispatchRate getSubscriptionDispatchRate(String namespace, boolean applied) throws PulsarAdminException; + DispatchRate getSubscriptionDispatchRate(String topic, boolean applied) throws PulsarAdminException; /** * Get applied subscription-message-dispatch-rate asynchronously. * <p/> - * Subscriptions under this namespace can dispatch this many messages per second. + * Subscriptions in this topic can dispatch this many messages per second. * - * @param namespace + * @param topic * @returns DispatchRate * number of messages per second */ - CompletableFuture<DispatchRate> getSubscriptionDispatchRateAsync(String namespace, boolean applied); + CompletableFuture<DispatchRate> getSubscriptionDispatchRateAsync(String topic, boolean applied); /** * Get subscription-message-dispatch-rate for the topic. * <p/> - * Subscriptions under this namespace can dispatch this many messages per second. + * Subscriptions of this topic can dispatch this many messages per second. * * @param topic * @returns DispatchRate @@ -886,7 +886,7 @@ public interface TopicPolicies { /** * Get subscription-message-dispatch-rate asynchronously. * <p/> - * Subscriptions under this namespace can dispatch this many messages per second. + * Subscriptions of this topic can dispatch this many messages per second. * * @param topic * @returns DispatchRate
