Interface ClusterOptions

Specifies the options which can be specified when connecting to a cluster.

interface ClusterOptions {
    deserializer?: Deserializer;
    logger?: Logger;
    maxRetries?: number;
    securityOptions?: SecurityOptions;
    timeoutOptions?: TimeoutOptions;
}

Properties

deserializer?: Deserializer

Sets the default deserializer for converting query result rows into objects. If not specified, the SDK uses an instance of the default JsonDeserializer.

Can also be set per-operation with QueryOptions.deserializer.

logger?: Logger

Provides an implementation of the Logger interface to be used by the SDK.

maxRetries?: number

Specifies the default maximum number of retries for operations performed by the SDK. Defaults to 7.

Volatile: This API is subject to change at any time.

securityOptions?: SecurityOptions

Specifies the security options for connections of this cluster.

timeoutOptions?: TimeoutOptions

Specifies the default timeouts for various operations performed by the SDK.