public final class ServiceBusClientBuilder extends Object
ServiceBusReceiverAsyncClient
and ServiceBusSenderAsyncClient
.Modifier and Type | Class and Description |
---|---|
class |
ServiceBusClientBuilder.ServiceBusReceiverClientBuilder
Builder for creating
ServiceBusReceiverClient and ServiceBusReceiverAsyncClient to consume
messages from Service Bus. |
class |
ServiceBusClientBuilder.ServiceBusSenderClientBuilder
Builder for creating
ServiceBusSenderClient and ServiceBusSenderAsyncClient to publish messages
to Service Bus. |
class |
ServiceBusClientBuilder.ServiceBusSessionReceiverClientBuilder
Builder for creating
ServiceBusReceiverClient and ServiceBusReceiverAsyncClient to consume
messages from a session aware Service Bus entity. |
Constructor and Description |
---|
ServiceBusClientBuilder()
Creates a new instance with the default transport
AmqpTransportType.AMQP . |
Modifier and Type | Method and Description |
---|---|
ServiceBusClientBuilder |
configuration(com.azure.core.util.Configuration configuration)
Sets the configuration store that is used during construction of the service client.
|
ServiceBusClientBuilder |
connectionString(String connectionString)
Sets the connection string for a Service Bus namespace or a specific Service Bus resource.
|
ServiceBusClientBuilder |
credential(String fullyQualifiedNamespace,
com.azure.core.credential.TokenCredential credential)
Sets the credential for the Service Bus resource.
|
ServiceBusClientBuilder |
proxyOptions(com.azure.core.amqp.ProxyOptions proxyOptions)
Sets the proxy configuration to use for
ServiceBusSenderAsyncClient . |
ServiceBusClientBuilder.ServiceBusReceiverClientBuilder |
receiver()
A new instance of
ServiceBusClientBuilder.ServiceBusReceiverClientBuilder used to configure Service Bus message consumers. |
ServiceBusClientBuilder |
retryOptions(com.azure.core.amqp.AmqpRetryOptions retryOptions)
Sets the retry options for Service Bus clients.
|
ServiceBusClientBuilder.ServiceBusSenderClientBuilder |
sender()
A new instance of
ServiceBusClientBuilder.ServiceBusSenderClientBuilder used to configure Service Bus message senders. |
ServiceBusClientBuilder.ServiceBusSessionReceiverClientBuilder |
sessionReceiver()
A new instance of
ServiceBusClientBuilder.ServiceBusSessionReceiverClientBuilder used to configure session aware Service
Bus message consumers. |
ServiceBusClientBuilder |
transportType(com.azure.core.amqp.AmqpTransportType transportType)
Sets the transport type by which all the communication with Azure Service Bus occurs.
|
public ServiceBusClientBuilder()
AmqpTransportType.AMQP
.public ServiceBusClientBuilder connectionString(String connectionString)
connectionString
- Connection string for a Service Bus namespace or a specific Service Bus resource.ServiceBusClientBuilder
object.public ServiceBusClientBuilder configuration(com.azure.core.util.Configuration configuration)
Configuration.NONE
to bypass using configuration settings during construction.configuration
- The configuration store used to configure Service Bus clients.ServiceBusClientBuilder
object.public ServiceBusClientBuilder credential(String fullyQualifiedNamespace, com.azure.core.credential.TokenCredential credential)
fullyQualifiedNamespace
- for the Service Bus.credential
- TokenCredential
to be used for authentication.ServiceBusClientBuilder
object.public ServiceBusClientBuilder proxyOptions(com.azure.core.amqp.ProxyOptions proxyOptions)
ServiceBusSenderAsyncClient
. When a proxy is configured, AmqpTransportType.AMQP_WEB_SOCKETS
must be used for the transport type.proxyOptions
- The proxy configuration to use.ServiceBusClientBuilder
object.public ServiceBusClientBuilder retryOptions(com.azure.core.amqp.AmqpRetryOptions retryOptions)
retryOptions
- The retry options to use.ServiceBusClientBuilder
object.public ServiceBusClientBuilder transportType(com.azure.core.amqp.AmqpTransportType transportType)
AmqpTransportType.AMQP
.transportType
- The transport type to use.ServiceBusClientBuilder
object.public ServiceBusClientBuilder.ServiceBusSenderClientBuilder sender()
ServiceBusClientBuilder.ServiceBusSenderClientBuilder
used to configure Service Bus message senders.ServiceBusClientBuilder.ServiceBusSenderClientBuilder
.public ServiceBusClientBuilder.ServiceBusReceiverClientBuilder receiver()
ServiceBusClientBuilder.ServiceBusReceiverClientBuilder
used to configure Service Bus message consumers.ServiceBusClientBuilder.ServiceBusReceiverClientBuilder
.public ServiceBusClientBuilder.ServiceBusSessionReceiverClientBuilder sessionReceiver()
ServiceBusClientBuilder.ServiceBusSessionReceiverClientBuilder
used to configure session aware Service
Bus message consumers.ServiceBusClientBuilder.ServiceBusSessionReceiverClientBuilder
.Copyright © 2020 Microsoft Corporation. All rights reserved.