Client. get Subscription(String topicPath, String subscriptionName) 方法
Retrieves a subscription for a given topic from the service namespace
public SubscriptionDescription getSubscription(String topicPath, String subscriptionName)
- The path of the topic relative to service bus namespace.
- The name of the subscription
- SubscriptionDescription containing information about the subscription.
- Thrown if path is null, empty, or not in right format or length.
- The operation times out. The timeout period is initiated through ClientSettings.operationTimeout
- Entity with this name doesn't exist.
- No sufficient permission to perform this operation. Please check ClientSettings.tokenProvider has correct details.
- The server is busy. You should wait before you retry the operation.
- An internal error or an unexpected exception occurred.
if the current thread was interrupted