public abstract class SpannerConfig
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SpannerConfig.Builder
Builder for
SpannerConfig . |
Constructor and Description |
---|
SpannerConfig() |
Modifier and Type | Method and Description |
---|---|
static SpannerConfig |
create() |
abstract @Nullable ValueProvider<Duration> |
getCommitDeadline() |
abstract @Nullable com.google.api.gax.retrying.RetrySettings |
getCommitRetrySettings() |
abstract @Nullable ValueProvider<java.lang.String> |
getDatabaseId() |
abstract @Nullable ValueProvider<java.lang.String> |
getEmulatorHost() |
abstract @Nullable com.google.api.gax.retrying.RetrySettings |
getExecuteStreamingSqlRetrySettings() |
abstract @Nullable ValueProvider<java.lang.String> |
getHost() |
abstract @Nullable ValueProvider<java.lang.String> |
getInstanceId() |
abstract @Nullable ValueProvider<java.lang.Boolean> |
getIsLocalChannelProvider() |
abstract @Nullable ValueProvider<Duration> |
getMaxCumulativeBackoff() |
abstract @Nullable ValueProvider<java.lang.String> |
getProjectId() |
abstract @Nullable org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableSet<com.google.api.gax.rpc.StatusCode.Code> |
getRetryableCodes() |
abstract @Nullable ValueProvider<Options.RpcPriority> |
getRpcPriority() |
void |
populateDisplayData(DisplayData.Builder builder) |
void |
validate() |
SpannerConfig |
withCommitDeadline(Duration commitDeadline)
Specifies the commit deadline.
|
SpannerConfig |
withCommitDeadline(ValueProvider<Duration> commitDeadline)
Specifies the commit deadline.
|
SpannerConfig |
withCommitRetrySettings(com.google.api.gax.retrying.RetrySettings commitRetrySettings)
Specifies the commit retry settings.
|
SpannerConfig |
withDatabaseId(java.lang.String databaseId)
Specifies the Cloud Spanner database ID.
|
SpannerConfig |
withDatabaseId(ValueProvider<java.lang.String> databaseId)
Specifies the Cloud Spanner database ID.
|
SpannerConfig |
withEmulatorHost(ValueProvider<java.lang.String> emulatorHost)
Specifies the Cloud Spanner host, when an emulator is used.
|
SpannerConfig |
withExecuteStreamingSqlRetrySettings(com.google.api.gax.retrying.RetrySettings executeStreamingSqlRetrySettings)
Specifies the ExecuteStreamingSql retry settings.
|
SpannerConfig |
withHost(ValueProvider<java.lang.String> host)
Specifies the Cloud Spanner host.
|
SpannerConfig |
withInstanceId(java.lang.String instanceId)
Specifies the Cloud Spanner instance ID.
|
SpannerConfig |
withInstanceId(ValueProvider<java.lang.String> instanceId)
Specifies the Cloud Spanner instance ID.
|
SpannerConfig |
withIsLocalChannelProvider(ValueProvider<java.lang.Boolean> isLocalChannelProvider)
Specifies whether a local channel provider should be used.
|
SpannerConfig |
withMaxCumulativeBackoff(Duration maxCumulativeBackoff)
Specifies the maximum cumulative backoff.
|
SpannerConfig |
withMaxCumulativeBackoff(ValueProvider<Duration> maxCumulativeBackoff)
Specifies the maximum cumulative backoff.
|
SpannerConfig |
withProjectId(java.lang.String projectId)
Specifies the Cloud Spanner project ID.
|
SpannerConfig |
withProjectId(ValueProvider<java.lang.String> projectId)
Specifies the Cloud Spanner project ID.
|
SpannerConfig |
withRetryableCodes(org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableSet<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
Specifies the errors that will be retried by the client library for all operations.
|
SpannerConfig |
withRpcPriority(Options.RpcPriority rpcPriority)
Specifies the RPC priority.
|
SpannerConfig |
withRpcPriority(ValueProvider<Options.RpcPriority> rpcPriority)
Specifies the RPC priority.
|
public abstract @Nullable ValueProvider<java.lang.String> getProjectId()
public abstract @Nullable ValueProvider<java.lang.String> getInstanceId()
public abstract @Nullable ValueProvider<java.lang.String> getDatabaseId()
public abstract @Nullable ValueProvider<java.lang.String> getHost()
public abstract @Nullable ValueProvider<java.lang.String> getEmulatorHost()
public abstract @Nullable ValueProvider<java.lang.Boolean> getIsLocalChannelProvider()
public abstract @Nullable ValueProvider<Duration> getCommitDeadline()
public abstract @Nullable ValueProvider<Duration> getMaxCumulativeBackoff()
public abstract @Nullable com.google.api.gax.retrying.RetrySettings getExecuteStreamingSqlRetrySettings()
public abstract @Nullable com.google.api.gax.retrying.RetrySettings getCommitRetrySettings()
public abstract @Nullable org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableSet<com.google.api.gax.rpc.StatusCode.Code> getRetryableCodes()
public abstract @Nullable ValueProvider<Options.RpcPriority> getRpcPriority()
public static SpannerConfig create()
public void validate()
public void populateDisplayData(DisplayData.Builder builder)
public SpannerConfig withProjectId(ValueProvider<java.lang.String> projectId)
public SpannerConfig withProjectId(java.lang.String projectId)
public SpannerConfig withInstanceId(ValueProvider<java.lang.String> instanceId)
public SpannerConfig withInstanceId(java.lang.String instanceId)
public SpannerConfig withDatabaseId(ValueProvider<java.lang.String> databaseId)
public SpannerConfig withDatabaseId(java.lang.String databaseId)
public SpannerConfig withHost(ValueProvider<java.lang.String> host)
public SpannerConfig withEmulatorHost(ValueProvider<java.lang.String> emulatorHost)
public SpannerConfig withIsLocalChannelProvider(ValueProvider<java.lang.Boolean> isLocalChannelProvider)
public SpannerConfig withCommitDeadline(Duration commitDeadline)
public SpannerConfig withCommitDeadline(ValueProvider<Duration> commitDeadline)
public SpannerConfig withMaxCumulativeBackoff(Duration maxCumulativeBackoff)
public SpannerConfig withMaxCumulativeBackoff(ValueProvider<Duration> maxCumulativeBackoff)
public SpannerConfig withExecuteStreamingSqlRetrySettings(com.google.api.gax.retrying.RetrySettings executeStreamingSqlRetrySettings)
public SpannerConfig withCommitRetrySettings(com.google.api.gax.retrying.RetrySettings commitRetrySettings)
public SpannerConfig withRetryableCodes(org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableSet<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
public SpannerConfig withRpcPriority(Options.RpcPriority rpcPriority)
public SpannerConfig withRpcPriority(ValueProvider<Options.RpcPriority> rpcPriority)