Package com.google.cloud.spanner
Class InstanceConfig
- java.lang.Object
-
- com.google.cloud.spanner.InstanceConfigInfo
-
- com.google.cloud.spanner.InstanceConfig
-
public class InstanceConfig extends InstanceConfigInfo
Represents a Cloud Spanner instance config.InstanceConfig
adds a layer of service related functionality overInstanceConfigInfo
.
-
-
Constructor Summary
Constructors Constructor Description InstanceConfig(InstanceConfigId id, String displayName, InstanceAdminClient client)
InstanceConfig(InstanceConfigId id, String displayName, List<ReplicaInfo> replicas, List<String> leaderOptions, InstanceAdminClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceConfig
reload()
Gets the current state of this instance config.-
Methods inherited from class com.google.cloud.spanner.InstanceConfigInfo
equals, getDisplayName, getId, getLeaderOptions, getReplicas, hashCode, toString
-
-
-
-
Constructor Detail
-
InstanceConfig
public InstanceConfig(InstanceConfigId id, String displayName, InstanceAdminClient client)
-
InstanceConfig
public InstanceConfig(InstanceConfigId id, String displayName, List<ReplicaInfo> replicas, List<String> leaderOptions, InstanceAdminClient client)
-
-
Method Detail
-
reload
public InstanceConfig reload()
Gets the current state of this instance config.
-
-