Class InstanceConfig (6.52.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
NameDescription
clientInstanceAdminClient
instanceConfigIdInstanceConfigId
Returns
TypeDescription
InstanceConfig.Builder

newBuilder(InstanceConfig instanceConfig)

public static InstanceConfig.Builder newBuilder(InstanceConfig instanceConfig)
Parameter
NameDescription
instanceConfigInstanceConfig
Returns
TypeDescription
InstanceConfig.Builder

Constructors

InstanceConfig(InstanceConfigId id, String displayName, InstanceAdminClient client)

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

Use #newBuilder instead

Parameters
NameDescription
idInstanceConfigId
displayNameString
clientInstanceAdminClient

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

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

Use #newBuilder instead

Parameters
NameDescription
idInstanceConfigId
displayNameString
replicasList<ReplicaInfo>
leaderOptionsList<String>
clientInstanceAdminClient

Methods

reload()

public InstanceConfig reload()

Gets the current state of this instance config.

Returns
TypeDescription
InstanceConfig

toBuilder()

public InstanceConfig.Builder toBuilder()
Returns
TypeDescription
InstanceConfig.Builder
Overrides