Interface AmqpTrait<T extends AmqpTrait<T>>
-
- Type Parameters:
T- The concrete type that implements the trait. This is required so that fluent operations can continue to return the concrete type, rather than the trait type.
public interface AmqpTrait<T extends AmqpTrait<T>>AnAzure SDK for Java traitproviding a consistent interface for configuration of AMQP-specific settings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TclientOptions(ClientOptions clientOptions)Allows for setting common properties such as application ID, headers, etc.TproxyOptions(ProxyOptions proxyOptions)Sets the proxy configuration to use.TretryOptions(AmqpRetryOptions retryOptions)Sets the retry policy.TtransportType(AmqpTransportType transport)Sets the transport type by which all the communication with Azure service occurs.
-
-
-
Method Detail
-
retryOptions
T retryOptions(AmqpRetryOptions retryOptions)
Sets the retry policy. If not specified, the default retry options are used.- Parameters:
retryOptions- The retry options to use.- Returns:
- Returns the same concrete type with the appropriate properties updated, to allow for fluent chaining of operations.
-
transportType
T transportType(AmqpTransportType transport)
Sets the transport type by which all the communication with Azure service occurs. The default value isAmqpTransportType.AMQP.- Parameters:
transport- The transport type to use.- Returns:
- Returns the same concrete type with the appropriate properties updated, to allow for fluent chaining of operations.
-
proxyOptions
T proxyOptions(ProxyOptions proxyOptions)
Sets the proxy configuration to use. When a proxy is configured,AmqpTransportType.AMQP_WEB_SOCKETSmust be used for the transport type.- Parameters:
proxyOptions- The proxy configuration to use.- Returns:
- Returns the same concrete type with the appropriate properties updated, to allow for fluent chaining of operations.
-
clientOptions
T clientOptions(ClientOptions clientOptions)
Allows for setting common properties such as application ID, headers, etc.- Parameters:
clientOptions- A configured instance ofClientOptions.- Returns:
- Returns the same concrete type with the appropriate properties updated, to allow for fluent chaining of operations.
-
-