@Immutable public final class ServerId extends java.lang.Object
Constructor and Description |
---|
ServerId(ClusterId clusterId,
ServerAddress address)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
ServerAddress |
getAddress()
Gets the server address.
|
ClusterId |
getClusterId()
Gets the cluster identifier.
|
int |
hashCode() |
java.lang.String |
toString() |
public ServerId(ClusterId clusterId, ServerAddress address)
clusterId
- the client-generated cluster identifieraddress
- the server addresspublic ClusterId getClusterId()
public ServerAddress getAddress()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object