Package com.azure.messaging.servicebus
Class ServiceBusClientBuilder.ServiceBusRuleManagerBuilder
java.lang.Object
com.azure.messaging.servicebus.ServiceBusClientBuilder.ServiceBusRuleManagerBuilder
- Enclosing class:
ServiceBusClientBuilder
Builder for creating
ServiceBusRuleManagerAsyncClient
to manage Service Bus subscription rules.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreates an asynchronousServiceBusRuleManagerAsyncClient
for managing rules of the specific subscription.Creates a synchronousServiceBusRuleManagerClient
for managing rules of the specific subscription.subscriptionName
(String subscriptionName) Sets the name of the subscription in the topic to manage its rules.Sets the name of the topic.
-
Method Details
-
topicName
Sets the name of the topic.subscriptionName(String)
must also be set.- Parameters:
topicName
- Name of the topic.- Returns:
- The modified
ServiceBusClientBuilder.ServiceBusRuleManagerBuilder
object. - See Also:
-
subscriptionName
public ServiceBusClientBuilder.ServiceBusRuleManagerBuilder subscriptionName(String subscriptionName) Sets the name of the subscription in the topic to manage its rules.topicName(String)
must also be set.- Parameters:
subscriptionName
- Name of the subscription.- Returns:
- The modified
ServiceBusClientBuilder.ServiceBusRuleManagerBuilder
object. - See Also:
-
buildAsyncClient
Creates an asynchronousServiceBusRuleManagerAsyncClient
for managing rules of the specific subscription.- Returns:
- A new
ServiceBusRuleManagerAsyncClient
that manages rules for specific subscription. - Throws:
IllegalStateException
- iftopicName
orsubscriptionName
is null or empty. It is also thrown if the Service BusconnectionString
contains anEntityPath
that does not match one set intopicName
.
-
buildClient
Creates a synchronousServiceBusRuleManagerClient
for managing rules of the specific subscription.- Returns:
- A new
ServiceBusRuleManagerClient
that manages rules for specific subscription. - Throws:
IllegalStateException
- iftopicName
orsubscriptionName
is null or empty. It is also thrown if the Service BusconnectionString
contains anEntityPath
that does not match one set intopicName
.
-