@Immutable public final class ServerId extends Object
Constructor | Description |
---|---|
ServerId(ClusterId clusterId,
ServerAddress address) |
Construct an instance.
|
Modifier and Type | Method | 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()