ClientSettings Class
- java.
lang. Object - com.
microsoft. azure. servicebus. ClientSettings
- com.
public class ClientSettings
Class encapsulating common client level settings like TokenProvider, RetryPolicy, OperationTimeout.
Constructor Summary
Constructor | Description |
---|---|
ClientSettings(TokenProvider tokenProvider) |
Creates a new instance with the given token provider, default retry policy and default operation timeout. |
ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout) |
Creates a new instance with the given token provider, retry policy and operation timeout. |
ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout, TransportType transportType) |
Creates a new instance with the given token provider, retry policy and operation timeout. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Duration |
getOperationTimeout()
Gets the operation timeout contained in this instance. |
Retry |
getRetryPolicy()
Gets the retry policy contained in this instance. |
Token |
getTokenProvider()
Gets the token provider contained in this instance. |
Transport |
getTransportType()
Gets the transport type for this instance |
Constructor Details
ClientSettings
public ClientSettings(TokenProvider tokenProvider)
Creates a new instance with the given token provider, default retry policy and default operation timeout.
Parameters:
TokenProvider instance
ClientSettings
public ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout)
Creates a new instance with the given token provider, retry policy and operation timeout.
Parameters:
TokenProvider instance
RetryPolicy instance
ClientSettings
public ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout, TransportType transportType)
Creates a new instance with the given token provider, retry policy and operation timeout.
Parameters:
TokenProvider instance
RetryPolicy instance
TransportType instance
Method Details
getOperationTimeout
public Duration getOperationTimeout()
Gets the operation timeout contained in this instance.
Returns:
getRetryPolicy
public RetryPolicy getRetryPolicy()
Gets the retry policy contained in this instance.
Returns:
getTokenProvider
public TokenProvider getTokenProvider()
Gets the token provider contained in this instance.
Returns:
getTransportType
public TransportType getTransportType()
Gets the transport type for this instance
Returns:
Applies to
Azure SDK for Java