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 class
ReplicaInfo.BuilderImpl
static class
ReplicaInfo.ReplicaType
Indicates the type of the replica.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static ReplicaInfo
fromProto(ReplicaInfo proto)
String
getLocation()
ReplicaInfo
getProto()
ReplicaInfo.ReplicaType
getType()
int
hashCode()
boolean
isDefaultLeaderLocation()
String
toString()
-
-
-
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()
-
-