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() |
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<Duration> getCommitDeadline()
public abstract @Nullable ValueProvider<Duration> getMaxCumulativeBackoff()
public abstract @Nullable ValueProvider<com.google.cloud.spanner.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 withCommitDeadline(Duration commitDeadline)
public SpannerConfig withCommitDeadline(ValueProvider<Duration> commitDeadline)
public SpannerConfig withMaxCumulativeBackoff(Duration maxCumulativeBackoff)
public SpannerConfig withMaxCumulativeBackoff(ValueProvider<Duration> maxCumulativeBackoff)
public SpannerConfig withRpcPriority(com.google.cloud.spanner.Options.RpcPriority rpcPriority)
public SpannerConfig withRpcPriority(ValueProvider<com.google.cloud.spanner.Options.RpcPriority> rpcPriority)