Class InstanceConfig

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

Constructors

InstanceConfig(InstanceConfigId id, String displayName, InstanceAdminClient client)

public InstanceConfig(InstanceConfigId id, String displayName, InstanceAdminClient client)
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)
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