ClientSettings 类

定义

Class encapsulating common client level settings like TokenProvider, RetryPolicy, OperationTimeout.

public class ClientSettings
继承
java.lang.Object
ClientSettings

构造函数

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.

方法

getOperationTimeout()

Gets the operation timeout contained in this instance.

getRetryPolicy()

Gets the retry policy contained in this instance.

getTokenProvider()

Gets the token provider contained in this instance.

getTransportType()

Gets the transport type for this instance

适用于