ManagementClient.getSubscription(String topicPath, String subscriptionName) 方法

定义

Retrieves a subscription for a given topic from the service namespace

public SubscriptionDescription getSubscription(String topicPath, String subscriptionName)

参数

topicPath
String

- The path of the topic relative to service bus namespace.

subscriptionName
String

- The name of the subscription

返回

- SubscriptionDescription containing information about the subscription.

例外

IllegalArgumentException

- Thrown if path is null, empty, or not in right format or length.

TimeoutException

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

MessagingEntityNotFoundException

- Entity with this name doesn't exist.

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

适用于