Skip to content

Commit

Permalink
Fix typo and doc in TopicPolies client api (apache#15293)
Browse files Browse the repository at this point in the history
(cherry picked from commit 14ba6c4)
  • Loading branch information
Jason918 authored and codelipenghui committed Apr 28, 2022
1 parent bdb6203 commit 4ad4bd8
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ void setInactiveTopicPolicies(String topic
/**
* 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
Expand All @@ -838,7 +838,7 @@ void setInactiveTopicPolicies(String topic
/**
* 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
Expand All @@ -849,31 +849,31 @@ void setInactiveTopicPolicies(String topic
/**
* 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
Expand All @@ -886,7 +886,7 @@ void setInactiveTopicPolicies(String topic
/**
* 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
Expand Down

0 comments on commit 4ad4bd8

Please sign in to comment.