ClientSettings Constructors

Definition

Overloads

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.

ClientSettings(TokenProvider tokenProvider)

Creates a new instance with the given token provider, default retry policy and default operation timeout.

public ClientSettings(TokenProvider tokenProvider)

Parameters

tokenProvider
TokenProvider

TokenProvider instance

ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout)

Creates a new instance with the given token provider, retry policy and operation timeout.

public ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout)

Parameters

tokenProvider
TokenProvider

TokenProvider instance

retryPolicy
RetryPolicy

RetryPolicy instance

operationTimeout
java.time.Duration

default operation timeout to be used for all client operations. Client can override this value by explicitly specifying a timeout in the operation.

ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout, TransportType transportType)

Creates a new instance with the given token provider, retry policy and operation timeout.

public ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout, TransportType transportType)

Parameters

tokenProvider
TokenProvider

TokenProvider instance

retryPolicy
RetryPolicy

RetryPolicy instance

operationTimeout
java.time.Duration

default operation timeout to be used for all client operations. Client can override this value by explicitly specifying a timeout in the operation.

transportType
TransportType

TransportType instance

Applies to