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

定义

Checks whether a given subscription exists or not.

public Boolean subscriptionExists(String topicPath, String subscriptionName)

参数

topicPath
String

- Path of the topic

subscriptionName
String

- Name of the subscription.

返回

Boolean

- True if the entity exists. False otherwise.

例外

IllegalArgumentException

- path is not null / empty / too long / invalid.

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

适用于