ServiceBusClientBuilder.ServiceBusSenderClientBuilder Class
- java.
lang. Object - com.
azure. messaging. servicebus. ServiceBusClientBuilder. ServiceBusSenderClientBuilder
- com.
public final class ServiceBusClientBuilder.ServiceBusSenderClientBuilder
Builder for creating ServiceBusSenderClient and ServiceBusSenderAsyncClient to publish messages to Service Bus.
Method Summary
Modifier and Type | Method and Description |
---|---|
Service |
buildAsyncClient()
Creates an asynchronous ServiceBusSenderAsyncClient for transmitting ServiceBusMessage to a Service Bus queue or topic. |
Service |
buildClient()
Creates a synchronous ServiceBusSenderClient for transmitting ServiceBusMessage to a Service Bus queue or topic. |
Service |
queueName(String queueName)
Sets the name of the Service Bus queue to publish messages to. |
Service |
topicName(String topicName)
Sets the name of the Service Bus topic to publish messages to. |
Methods inherited from java.lang.Object
Method Details
buildAsyncClient
public ServiceBusSenderAsyncClient buildAsyncClient()
Creates an asynchronous ServiceBusSenderAsyncClient for transmitting ServiceBusMessage to a Service Bus queue or topic.
Returns:
buildClient
public ServiceBusSenderClient buildClient()
Creates a synchronous ServiceBusSenderClient for transmitting ServiceBusMessage to a Service Bus queue or topic.
Returns:
queueName
public ServiceBusClientBuilder.ServiceBusSenderClientBuilder queueName(String queueName)
Sets the name of the Service Bus queue to publish messages to.
Parameters:
Returns:
topicName
public ServiceBusClientBuilder.ServiceBusSenderClientBuilder topicName(String topicName)
Sets the name of the Service Bus topic to publish messages to.
Parameters:
Returns: