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