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. |
ManagementClientAsync(URI namespaceEndpointURI, ClientSettings clientSettings) |
Creates a new ManagementClientAsync. |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
ManagementClientAsync
public ManagementClientAsync(ConnectionStringBuilder connectionStringBuilder)
Creates a new ManagementClientAsync. User should call close() at the end of life of the client.
Parameters:
- connectionStringBuilder containing namespace information and client settings.
ManagementClientAsync
public ManagementClientAsync(URI namespaceEndpointURI, ClientSettings clientSettings)
Creates a new ManagementClientAsync. User should call close() at the end of life of the client.
Parameters:
- URI of the namespace connecting to.
- client settings.
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:
- A QueueDescription object describing the attributes with which the new queue will be created.
Returns:
createQueueAsync
public CompletableFuture
Creates a new queue in the service namespace with the given name. See QueueDescription for default values of queue properties.
Parameters:
- The name of the queue relative to the service namespace base address.
Returns:
createRuleAsync
public CompletableFuture
Creates a new rule for a given topic - subscription. See RuleDescription for default values of subscription properties.
Parameters:
- Name of the topic.
- Name of the subscription.
- A RuleDescription object describing the attributes with which the new rule will be created.
Returns:
createSubscriptionAsync
public CompletableFuture
Creates a new subscription in the service namespace with the given name. See SubscriptionDescription for default values of subscription properties.
Parameters:
- A SubscriptionDescription object describing the attributes with which the new subscription will be created.
Returns:
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:
- A SubscriptionDescription object describing the attributes with which the new subscription will be created.
- A RuleDescription object describing the default rule. If null, then pass-through filter will be created.
Returns:
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:
- The name of the topic relative to the service namespace base address.
- The name of the subscription.
Returns:
createTopicAsync
public CompletableFuture
Creates a new topic in the service namespace with the given name. See TopicDescription for default values of topic properties.
Parameters:
- A QueueDescription object describing the attributes with which the new topic will be created.
Returns:
createTopicAsync
public CompletableFuture
Creates a new topic in the service namespace with the given name. See TopicDescription for default values of topic properties.
Parameters:
- The name of the topic relative to the service namespace base address.
Returns:
deleteQueueAsync
public CompletableFuture
Deletes the queue described by the path relative to the service namespace base address.
Parameters:
- The name of the entity relative to the service namespace base address.
Returns:
deleteRuleAsync
public CompletableFuture
Deletes the rule for a given topic-subscription.
Parameters:
- The name of the topic.
- The name of the subscription.
- The name of the rule.
Returns:
deleteSubscriptionAsync
public CompletableFuture
Deletes the subscription described by the topicPath and the subscriptionName.
Parameters:
- The name of the topic.
- The name of the subscription.
Returns:
deleteTopicAsync
public CompletableFuture
Deletes the topic described by the path relative to the service namespace base address.
Parameters:
- The name of the entity relative to the service namespace base address.
Returns:
getNamespaceInfoAsync
public CompletableFuture
Retrieves information related to the namespace. Works with any claim (Send/Listen/Manage).
Returns:
- NamespaceInfo containing namespace information.
getQueueAsync
public CompletableFuture
Retrieves a queue from the service namespace
Parameters:
- The path of the queue relative to service bus namespace.
Returns:
- QueueDescription containing information about the queue.
getQueueRuntimeInfoAsync
public CompletableFuture
Retrieves the runtime information of a queue.
Parameters:
- The path of the queue relative to service bus namespace.
Returns:
- QueueRuntimeInfo containing runtime information about the queue.
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:
- The number of queues to fetch. Defaults to 100. Maximum value allowed is 100.
- The number of queues to skip. Defaults to 0. Cannot be negative.
Returns:
getRuleAsync
public CompletableFuture
Retrieves a rule for a given topic and subscription from the service namespace
Parameters:
- The path of the topic relative to service bus namespace.
- The name of the subscription.
- The name of the rule.
Returns:
- RuleDescription containing information about the subscription.
getRulesAsync
public CompletableFuture> getRulesAsync(String topicName, String subscriptionName)
Retrieves the list of rules for a given topic-subscription in the namespace.
Parameters:
- The name of the topic.
- The name of the subscription.
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:
- The name of the topic.
- The name of the subscription.
- The number of rules to fetch. Defaults to 100. Maximum value allowed is 100.
- The number of rules to skip. Defaults to 0. Cannot be negative.
Returns:
getSubscriptionAsync
public CompletableFuture
Retrieves a subscription for a given topic from the service namespace
Parameters:
- The path of the topic relative to service bus namespace.
- The name of the subscription
Returns:
- SubscriptionDescription containing information about the subscription.
getSubscriptionRuntimeInfoAsync
public CompletableFuture
Retrieves the runtime information of a subscription in a given topic
Parameters:
- The path of the topic relative to service bus namespace.
- The name of the subscription
Returns:
- SubscriptionRuntimeInfo containing the runtime information about the subscription.
getSubscriptionsAsync
public CompletableFuture> getSubscriptionsAsync(String topicName)
Retrieves the list of subscriptions for a given topic in the namespace.
Parameters:
- The name of the topic.
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:
- The name of the topic.
- The number of subscriptions to fetch. Defaults to 100. Maximum value allowed is 100.
- The number of subscriptions to skip. Defaults to 0. Cannot be negative.
Returns:
getTopicAsync
public CompletableFuture
Retrieves a topic from the service namespace
Parameters:
- The path of the queue relative to service bus namespace.
Returns:
- Description containing information about the topic.
getTopicRuntimeInfoAsync
public CompletableFuture
Retrieves the runtime information of a topic
Parameters:
- The path of the queue relative to service bus namespace.
Returns:
- TopicRuntimeInfo containing runtime information about the topic.
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:
- The number of topics to fetch. Defaults to 100. Maximum value allowed is 100.
- The number of topics to skip. Defaults to 0. Cannot be negative.
Returns:
queueExistsAsync
public CompletableFuture
Checks whether a given queue exists or not.
Parameters:
- Path of the entity to check
Returns:
- True if the entity exists. False otherwise.
ruleExistsAsync
public CompletableFuture
Checks whether a given rule exists or not for a given subscription.
Parameters:
- Path of the topic
- Name of the subscription.
- Name of the rule
Returns:
- True if the entity exists. False otherwise.
subscriptionExistsAsync
public CompletableFuture
Checks whether a given subscription exists or not.
Parameters:
- Path of the topic
- Name of the subscription.
Returns:
- True if the entity exists. False otherwise.
topicExistsAsync
public CompletableFuture
Checks whether a given topic exists or not.
Parameters:
- Path of the entity to check
Returns:
- True if the entity exists. False otherwise.
updateQueueAsync
public CompletableFuture
Updates an existing queue.
Parameters:
- A QueueDescription object describing the attributes with which the queue will be updated.
Returns:
updateRuleAsync
public CompletableFuture
Updates an existing rule.
Parameters:
- Name of the topic.
- Name of the subscription.
- A RuleDescription object describing the attributes with which the rule will be updated.
Returns:
updateSubscriptionAsync
public CompletableFuture
Updates an existing subscription.
Parameters:
- A SubscriptionDescription object describing the attributes with which the subscription will be updated.
Returns:
updateTopicAsync
public CompletableFuture
Updates an existing topic.
Parameters:
- A TopicDescription object describing the attributes with which the topic will be updated.
Returns: