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() |
@Nullable public abstract ValueProvider<java.lang.String> getProjectId()
@Nullable public abstract ValueProvider<java.lang.String> getInstanceId()
@Nullable public abstract ValueProvider<java.lang.String> getDatabaseId()
@Nullable public abstract ValueProvider<java.lang.String> getHost()
@Nullable public abstract ValueProvider<Duration> getCommitDeadline()
@Nullable public abstract ValueProvider<Duration> getMaxCumulativeBackoff()
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 withCommitDeadline(Duration commitDeadline)
public SpannerConfig withCommitDeadline(ValueProvider<Duration> commitDeadline)
public SpannerConfig withMaxCumulativeBackoff(Duration maxCumulativeBackoff)
public SpannerConfig withMaxCumulativeBackoff(ValueProvider<Duration> maxCumulativeBackoff)