Class SpannerSettings (3.5.0)

public sealed class SpannerSettings : ServiceSettingsBase

Settings for SpannerClient instances.

Inheritance

Object > Google.Api.Gax.Grpc.ServiceSettingsBase > SpannerSettings

Namespace

Google.Cloud.Spanner.V1

Assembly

Google.Cloud.Spanner.V1.dll

Constructors

SpannerSettings()

public SpannerSettings()

Constructs a new SpannerSettings object with default settings.

Properties

BatchCreateSessionsSettings

public CallSettings BatchCreateSessionsSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.BatchCreateSessions and SpannerClient.BatchCreateSessionsAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • Initial retry delay: 250 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 32000 milliseconds.
  • Maximum attempts: Unlimited
  • Timeout: 60 seconds.

BeginTransactionSettings

public CallSettings BeginTransactionSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.BeginTransaction and SpannerClient.BeginTransactionAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • Initial retry delay: 250 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 32000 milliseconds.
  • Maximum attempts: Unlimited
  • Timeout: 30 seconds.

CommitSettings

public CallSettings CommitSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.Commit and SpannerClient.CommitAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • Initial retry delay: 250 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 32000 milliseconds.
  • Maximum attempts: Unlimited
  • Timeout: 3600 seconds.

CreateSessionSettings

public CallSettings CreateSessionSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.CreateSession and SpannerClient.CreateSessionAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • Initial retry delay: 250 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 32000 milliseconds.
  • Maximum attempts: Unlimited
  • Timeout: 30 seconds.

DeleteSessionSettings

public CallSettings DeleteSessionSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.DeleteSession and SpannerClient.DeleteSessionAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • Initial retry delay: 250 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 32000 milliseconds.
  • Maximum attempts: Unlimited
  • Timeout: 30 seconds.

ExecuteBatchDmlSettings

public CallSettings ExecuteBatchDmlSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.ExecuteBatchDml and SpannerClient.ExecuteBatchDmlAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • Initial retry delay: 250 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 32000 milliseconds.
  • Maximum attempts: Unlimited
  • Timeout: 30 seconds.

ExecuteSqlSettings

public CallSettings ExecuteSqlSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.ExecuteSql and SpannerClient.ExecuteSqlAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • Initial retry delay: 250 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 32000 milliseconds.
  • Maximum attempts: Unlimited
  • Timeout: 30 seconds.

ExecuteStreamingSqlSettings

public CallSettings ExecuteStreamingSqlSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.ExecuteStreamingSql and SpannerClient.ExecuteStreamingSqlAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 3600 seconds.

GetSessionSettings

public CallSettings GetSessionSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.GetSession and SpannerClient.GetSessionAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • Initial retry delay: 250 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 32000 milliseconds.
  • Maximum attempts: Unlimited
  • Timeout: 30 seconds.

ListSessionsSettings

public CallSettings ListSessionsSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.ListSessions and SpannerClient.ListSessionsAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • Initial retry delay: 250 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 32000 milliseconds.
  • Maximum attempts: Unlimited
  • Timeout: 3600 seconds.

Logger

public Logger Logger { get; set; }

The logger to use for operations involving this client. This property is never null.

Property Value
TypeDescription
Logger

PartitionQuerySettings

public CallSettings PartitionQuerySettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.PartitionQuery and SpannerClient.PartitionQueryAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • Initial retry delay: 250 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 32000 milliseconds.
  • Maximum attempts: Unlimited
  • Timeout: 30 seconds.

PartitionReadSettings

public CallSettings PartitionReadSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.PartitionRead and SpannerClient.PartitionReadAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • Initial retry delay: 250 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 32000 milliseconds.
  • Maximum attempts: Unlimited
  • Timeout: 30 seconds.

ReadSettings

public CallSettings ReadSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.Read and SpannerClient.ReadAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • Initial retry delay: 250 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 32000 milliseconds.
  • Maximum attempts: Unlimited
  • Timeout: 30 seconds.

RollbackSettings

public CallSettings RollbackSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.Rollback and SpannerClient.RollbackAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • Initial retry delay: 250 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 32000 milliseconds.
  • Maximum attempts: Unlimited
  • Timeout: 30 seconds.

StreamingReadSettings

public CallSettings StreamingReadSettings { get; set; }

Google.Api.Gax.Grpc.CallSettings for synchronous and asynchronous calls to SpannerClient.StreamingRead and SpannerClient.StreamingReadAsync.

Property Value
TypeDescription
Google.Api.Gax.Grpc.CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 3600 seconds.

Methods

Clone()

public SpannerSettings Clone()

Creates a deep clone of this object, with all the same property values.

Returns
TypeDescription
SpannerSettings

A deep clone of this SpannerSettings object.

GetDefault()

public static SpannerSettings GetDefault()

Get a new instance of the default SpannerSettings.

Returns
TypeDescription
SpannerSettings

A new instance of the default SpannerSettings.