ManagementClient.getSubscriptions 方法

定义

重载

getSubscriptions(String topicName)

Retrieves the list of subscriptions for a given topic in the namespace.

getSubscriptions(String topicName, int count, int skip)

Retrieves the list of subscriptions for a given topic in the namespace. You can simulate pages of list of entities by manipulating count and skip parameters. skip(0)+count(100) gives first 100 entities. skip(100)+count(100) gives the next 100 entities.

getSubscriptions(String topicName)

Retrieves the list of subscriptions for a given topic in the namespace.

public List<SubscriptionDescription> getSubscriptions(String topicName)

参数

topicName
String

- The name of the topic.

返回

the first 100 subscriptions.

例外

TimeoutException

- The operation times out. The timeout period is initiated through ClientSettings.operationTimeout

AuthorizationFailedException

- No sufficient permission to perform this operation. Please check ClientSettings.tokenProvider has correct details.

ServerBusyException

- The server is busy. You should wait before you retry the operation.

ServiceBusException

- An internal error or an unexpected exception occurred.

InterruptedException

if the current thread was interrupted

getSubscriptions(String topicName, int count, int skip)

Retrieves the list of subscriptions for a given topic in the namespace. You can simulate pages of list of entities by manipulating count and skip parameters. skip(0)+count(100) gives first 100 entities. skip(100)+count(100) gives the next 100 entities.

public List<SubscriptionDescription> getSubscriptions(String topicName, int count, int skip)

参数

topicName
String

- The name of the topic.

count
int

- The number of subscriptions to fetch. Defaults to 100. Maximum value allowed is 100.

skip
int

- The number of subscriptions to skip. Defaults to 0. Cannot be negative.

返回

the list of subscriptions.

例外

TimeoutException

- The operation times out. The timeout period is initiated through ClientSettings.operationTimeout

AuthorizationFailedException

- No sufficient permission to perform this operation. Please check ClientSettings.tokenProvider has correct details.

ServerBusyException

- The server is busy. You should wait before you retry the operation.

ServiceBusException

- An internal error or an unexpected exception occurred.

InterruptedException

if the current thread was interrupted

适用于