Class InstanceConfig (6.66.0)

public class InstanceConfig extends InstanceConfigInfo

Represents a Cloud Spanner instance config.InstanceConfig adds a layer of service related functionality over InstanceConfigInfo.

Inheritance

java.lang.Object > InstanceConfigInfo > InstanceConfig

Static Methods

newBuilder(InstanceAdminClient client, InstanceConfigId instanceConfigId)

public static InstanceConfig.Builder newBuilder(InstanceAdminClient client, InstanceConfigId instanceConfigId)
Parameters
Name Description
client InstanceAdminClient
instanceConfigId InstanceConfigId
Returns
Type Description
InstanceConfig.Builder

newBuilder(InstanceConfig instanceConfig)

public static InstanceConfig.Builder newBuilder(InstanceConfig instanceConfig)
Parameter
Name Description
instanceConfig InstanceConfig
Returns
Type Description
InstanceConfig.Builder

Constructors

InstanceConfig(InstanceConfigId id, String displayName, InstanceAdminClient client) (deprecated)

public InstanceConfig(InstanceConfigId id, String displayName, InstanceAdminClient client)

Use #newBuilder instead

Parameters
Name Description
id InstanceConfigId
displayName String
client InstanceAdminClient

InstanceConfig(InstanceConfigId id, String displayName, List<ReplicaInfo> replicas, List<String> leaderOptions, InstanceAdminClient client) (deprecated)

public InstanceConfig(InstanceConfigId id, String displayName, List<ReplicaInfo> replicas, List<String> leaderOptions, InstanceAdminClient client)

Use #newBuilder instead

Parameters
Name Description
id InstanceConfigId
displayName String
replicas List<ReplicaInfo>
leaderOptions List<String>
client InstanceAdminClient

Methods

reload()

public InstanceConfig reload()

Gets the current state of this instance config.

Returns
Type Description
InstanceConfig

toBuilder()

public InstanceConfig.Builder toBuilder()
Returns
Type Description
InstanceConfig.Builder
Overrides