public sealed class SpannerSettings : ServiceSettingsBase
Settings for SpannerClient instances.
Namespace
Google.Cloud.Spanner.V1Assembly
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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
Google.Api.Gax.Grpc.CallSettings |
- 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 | |
---|---|
Type | Description |
SpannerSettings | A deep clone of this SpannerSettings object. |
GetDefault()
public static SpannerSettings GetDefault()
Get a new instance of the default SpannerSettings.
Returns | |
---|---|
Type | Description |
SpannerSettings | A new instance of the default SpannerSettings. |