AmqpTrait<T> Interface
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
An Azure SDK for Java trait providing a consistent interface for configuration of AMQP-specific settings.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract T |
clientOptions(ClientOptions clientOptions)
Allows for setting common properties such as application ID, headers, etc. |
abstract T |
proxyOptions(ProxyOptions proxyOptions)
Sets the proxy configuration to use. |
abstract T |
retryOptions(AmqpRetryOptions retryOptions)
Sets the retry policy. |
abstract T |
transportType(AmqpTransportType transport)
Sets the transport type by which all the communication with Azure service occurs. |
Method Details
clientOptions
public abstract T clientOptions(ClientOptions clientOptions)
Allows for setting common properties such as application ID, headers, etc.
Parameters:
Returns:
proxyOptions
public abstract T proxyOptions(ProxyOptions proxyOptions)
Sets the proxy configuration to use. When a proxy is configured, AMQP_WEB_SOCKETS must be used for the transport type.
Parameters:
Returns:
retryOptions
public abstract T retryOptions(AmqpRetryOptions retryOptions)
Sets the retry policy. If not specified, the default retry options are used.
Parameters:
Returns:
transportType
public abstract T transportType(AmqpTransportType transport)
Sets the transport type by which all the communication with Azure service occurs. The default value is AMQP.
Parameters:
Returns:
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應