Package com.google.cloud.spanner
Class ReplicaInfo
- java.lang.Object
-
- com.google.cloud.spanner.ReplicaInfo
-
public class ReplicaInfo extends Object
Represents a Cloud Spanner replica information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReplicaInfo.BuilderImplstatic classReplicaInfo.ReplicaTypeIndicates the type of the replica.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ReplicaInfofromProto(ReplicaInfo proto)StringgetLocation()ReplicaInfogetProto()ReplicaInfo.ReplicaTypegetType()inthashCode()booleanisDefaultLeaderLocation()StringtoString()
-
-
-
Method Detail
-
fromProto
public static ReplicaInfo fromProto(ReplicaInfo proto)
-
getLocation
public String getLocation()
-
getType
public ReplicaInfo.ReplicaType getType()
-
isDefaultLeaderLocation
public boolean isDefaultLeaderLocation()
-
getProto
public ReplicaInfo getProto()
-
-