ManagementClientAsync Class
- java.
lang. Object - com.
microsoft. azure. servicebus. management. ManagementClientAsync
- com.
public class ManagementClientAsync
Asynchronous client to perform management operations on Service Bus entities. Operations return CompletableFuture which asynchronously return the responses.
Constructor Summary
Constructor | Description |
---|---|
ManagementClientAsync(ConnectionStringBuilder connectionStringBuilder) |
Creates a new ManagementClientAsync. User should call close() at the end of life of the client. |
ManagementClientAsync(URI namespaceEndpointURI, ClientSettings clientSettings) |
Creates a new ManagementClientAsync. User should call close() at the end of life of the client. |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Disposes and closes the managementClient. |
CompletableFuture<Queue |
createQueueAsync(QueueDescription queueDescription)
Creates a new queue in the service namespace with the given name. See QueueDescription for default values of queue properties. |
CompletableFuture<Queue |
createQueueAsync(String queuePath)
Creates a new queue in the service namespace with the given name. See QueueDescription for default values of queue properties. |
CompletableFuture<Rule |
createRuleAsync(String topicName, String subscriptionName, RuleDescription ruleDescription)
Creates a new rule for a given topic - subscription. See RuleDescription for default values of subscription properties. |
CompletableFuture<Subscription |
createSubscriptionAsync(String topicPath, String subscriptionName)
Creates a new subscription for a given topic in the service namespace with the given name. See SubscriptionDescription for default values of subscription properties. |
CompletableFuture<Subscription |
createSubscriptionAsync(SubscriptionDescription subscriptionDescription)
Creates a new subscription in the service namespace with the given name. See SubscriptionDescription for default values of subscription properties. |
CompletableFuture<Subscription |
createSubscriptionAsync(SubscriptionDescription subscriptionDescription, RuleDescription defaultRule)
Creates a new subscription in the service namespace with the provided default rule. See SubscriptionDescription for default values of subscription properties. |
CompletableFuture<Topic |
createTopicAsync(String topicPath)
Creates a new topic in the service namespace with the given name. See TopicDescription for default values of topic properties. |
CompletableFuture<Topic |
createTopicAsync(TopicDescription topicDescription)
Creates a new topic in the service namespace with the given name. See TopicDescription for default values of topic properties. |
CompletableFuture<Void> |
deleteQueueAsync(String path)
Deletes the queue described by the path relative to the service namespace base address. |
CompletableFuture<Void> |
deleteRuleAsync(String topicPath, String subscriptionName, String ruleName)
Deletes the rule for a given topic-subscription. |
CompletableFuture<Void> |
deleteSubscriptionAsync(String topicPath, String subscriptionName)
Deletes the subscription described by the topicPath and the subscriptionName. |
CompletableFuture<Void> |
deleteTopicAsync(String path)
Deletes the topic described by the path relative to the service namespace base address. |
CompletableFuture<Namespace |
getNamespaceInfoAsync()
Retrieves information related to the namespace. Works with any claim (Send/Listen/Manage). |
CompletableFuture<Queue |
getQueueAsync(String path)
Retrieves a queue from the service namespace |
CompletableFuture<Queue |
getQueueRuntimeInfoAsync(String path)
Retrieves the runtime information of a queue. |
CompletableFuture<List<Queue |
getQueuesAsync()
Retrieves the list of queues present in the namespace. |
CompletableFuture<List<Queue |
getQueuesAsync(int count, int skip)
Retrieves the list of queues present 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. |
CompletableFuture<Rule |
getRuleAsync(String topicPath, String subscriptionName, String ruleName)
Retrieves a rule for a given topic and subscription from the service namespace |
CompletableFuture<List<Rule |
getRulesAsync(String topicName, String subscriptionName)
Retrieves the list of rules for a given topic-subscription in the namespace. |
CompletableFuture<List<Rule |
getRulesAsync(String topicName, String subscriptionName, int count, int skip)
Retrieves the list of rules for a given topic-subscription 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. |
CompletableFuture<Subscription |
getSubscriptionAsync(String topicPath, String subscriptionName)
Retrieves a subscription for a given topic from the service namespace |
CompletableFuture<Subscription |
getSubscriptionRuntimeInfoAsync(String topicPath, String subscriptionName)
Retrieves the runtime information of a subscription in a given topic |
CompletableFuture<List<Subscription |
getSubscriptionsAsync(String topicName)
Retrieves the list of subscriptions for a given topic in the namespace. |
CompletableFuture<List<Subscription |
getSubscriptionsAsync(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. |
CompletableFuture<Topic |
getTopicAsync(String path)
Retrieves a topic from the service namespace |
CompletableFuture<Topic |
getTopicRuntimeInfoAsync(String path)
Retrieves the runtime information of a topic |
CompletableFuture<List<Topic |
getTopicsAsync()
Retrieves the list of topics present in the namespace. |
CompletableFuture<List<Topic |
getTopicsAsync(int count, int skip)
Retrieves the list of topics present 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. |
CompletableFuture<Boolean> |
queueExistsAsync(String path)
Checks whether a given queue exists or not. |
CompletableFuture<Boolean> |
ruleExistsAsync(String topicPath, String subscriptionName, String ruleName)
Checks whether a given rule exists or not for a given subscription. |
CompletableFuture<Boolean> |
subscriptionExistsAsync(String topicPath, String subscriptionName)
Checks whether a given subscription exists or not. |
CompletableFuture<Boolean> |
topicExistsAsync(String path)
Checks whether a given topic exists or not. |
CompletableFuture<Queue |
updateQueueAsync(QueueDescription queueDescription)
Updates an existing queue. |
CompletableFuture<Rule |
updateRuleAsync(String topicName, String subscriptionName, RuleDescription ruleDescription)
Updates an existing rule. |
CompletableFuture<Subscription |
updateSubscriptionAsync(SubscriptionDescription subscriptionDescription)
Updates an existing subscription. |
CompletableFuture<Topic |
updateTopicAsync(TopicDescription topicDescription)
Updates an existing topic. |
Constructor Details
ManagementClientAsync
public ManagementClientAsync(ConnectionStringBuilder connectionStringBuilder)
Creates a new ManagementClientAsync. User should call close() at the end of life of the client.
Parameters:
ManagementClientAsync
public ManagementClientAsync(URI namespaceEndpointURI, ClientSettings clientSettings)
Creates a new ManagementClientAsync. User should call close() at the end of life of the client.
Parameters:
Method Details
close
public void close()
Disposes and closes the managementClient.
Throws:
createQueueAsync
public CompletableFuture
Creates a new queue in the service namespace with the given name. See QueueDescription for default values of queue properties.
Parameters:
Returns:
QueueDescription of the newly created queue.
createQueueAsync
public CompletableFuture
Creates a new queue in the service namespace with the given name. See QueueDescription for default values of queue properties.
Parameters:
Returns:
QueueDescription of the newly created queue.
Throws:
createRuleAsync
public CompletableFuture
Creates a new rule for a given topic - subscription. See RuleDescription for default values of subscription properties.
Parameters:
Returns:
RuleDescription of the newly created rule.
createSubscriptionAsync
public CompletableFuture
Creates a new subscription for a given topic in the service namespace with the given name. See SubscriptionDescription for default values of subscription properties.
Parameters:
Returns:
SubscriptionDescription of the newly created subscription.
Throws:
createSubscriptionAsync
public CompletableFuture
Creates a new subscription in the service namespace with the given name. See SubscriptionDescription for default values of subscription properties.
Parameters:
Returns:
SubscriptionDescription of the newly created subscription.
createSubscriptionAsync
public CompletableFuture
Creates a new subscription in the service namespace with the provided default rule. See SubscriptionDescription for default values of subscription properties.
Parameters:
Returns:
SubscriptionDescription of the newly created subscription.
createTopicAsync
public CompletableFuture
Creates a new topic in the service namespace with the given name. See TopicDescription for default values of topic properties.
Parameters:
Returns:
TopicDescription of the newly created topic.
Throws:
createTopicAsync
public CompletableFuture
Creates a new topic in the service namespace with the given name. See TopicDescription for default values of topic properties.
Parameters:
Returns:
TopicDescription of the newly created topic.
deleteQueueAsync
public CompletableFuture
Deletes the queue described by the path relative to the service namespace base address.
Parameters:
Returns:
Throws:
deleteRuleAsync
public CompletableFuture
Deletes the rule for a given topic-subscription.
Parameters:
Returns:
Throws:
deleteSubscriptionAsync
public CompletableFuture
Deletes the subscription described by the topicPath and the subscriptionName.
Parameters:
Returns:
Throws:
deleteTopicAsync
public CompletableFuture
Deletes the topic described by the path relative to the service namespace base address.
Parameters:
Returns:
Throws:
getNamespaceInfoAsync
public CompletableFuture
Retrieves information related to the namespace. Works with any claim (Send/Listen/Manage).
Returns:
getQueueAsync
public CompletableFuture
Retrieves a queue from the service namespace
Parameters:
Returns:
Throws:
getQueueRuntimeInfoAsync
public CompletableFuture
Retrieves the runtime information of a queue.
Parameters:
Returns:
Throws:
getQueuesAsync
public CompletableFuture> getQueuesAsync()
Retrieves the list of queues present in the namespace.
Returns:
getQueuesAsync
public CompletableFuture> getQueuesAsync(int count, int skip)
Retrieves the list of queues present 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.
Parameters:
Returns:
getRuleAsync
public CompletableFuture
Retrieves a rule for a given topic and subscription from the service namespace
Parameters:
Returns:
Throws:
getRulesAsync
public CompletableFuture> getRulesAsync(String topicName, String subscriptionName)
Retrieves the list of rules for a given topic-subscription in the namespace.
Parameters:
Returns:
getRulesAsync
public CompletableFuture> getRulesAsync(String topicName, String subscriptionName, int count, int skip)
Retrieves the list of rules for a given topic-subscription 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.
Parameters:
Returns:
getSubscriptionAsync
public CompletableFuture
Retrieves a subscription for a given topic from the service namespace
Parameters:
Returns:
Throws:
getSubscriptionRuntimeInfoAsync
public CompletableFuture
Retrieves the runtime information of a subscription in a given topic
Parameters:
Returns:
Throws:
getSubscriptionsAsync
public CompletableFuture> getSubscriptionsAsync(String topicName)
Retrieves the list of subscriptions for a given topic in the namespace.
Parameters:
Returns:
getSubscriptionsAsync
public CompletableFuture> getSubscriptionsAsync(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.
Parameters:
Returns:
getTopicAsync
public CompletableFuture
Retrieves a topic from the service namespace
Parameters:
Returns:
Throws:
getTopicRuntimeInfoAsync
public CompletableFuture
Retrieves the runtime information of a topic
Parameters:
Returns:
Throws:
getTopicsAsync
public CompletableFuture> getTopicsAsync()
Retrieves the list of topics present in the namespace.
Returns:
getTopicsAsync
public CompletableFuture> getTopicsAsync(int count, int skip)
Retrieves the list of topics present 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.
Parameters:
Returns:
queueExistsAsync
public CompletableFuture
Checks whether a given queue exists or not.
Parameters:
Returns:
Throws:
ruleExistsAsync
public CompletableFuture
Checks whether a given rule exists or not for a given subscription.
Parameters:
Returns:
Throws:
subscriptionExistsAsync
public CompletableFuture
Checks whether a given subscription exists or not.
Parameters:
Returns:
Throws:
topicExistsAsync
public CompletableFuture
Checks whether a given topic exists or not.
Parameters:
Returns:
Throws:
updateQueueAsync
public CompletableFuture
Updates an existing queue.
Parameters:
Returns:
QueueDescription of the updated queue.
Throws:
updateRuleAsync
public CompletableFuture
Updates an existing rule.
Parameters:
Returns:
RuleDescription of the updated rule.
Throws:
updateSubscriptionAsync
public CompletableFuture
Updates an existing subscription.
Parameters:
Returns:
SubscriptionDescription of the updated subscription.
Throws:
updateTopicAsync
public CompletableFuture
Updates an existing topic.
Parameters:
Returns:
TopicDescription of the updated topic.
Throws:
Applies to
Azure SDK for Java