class ConnectionEvent extends ClusterEvent
| Modifier and Type | Field and Description |
|---|---|
private ServerAddress |
serverAddress |
| Constructor and Description |
|---|
ConnectionEvent(java.lang.String clusterId,
ServerAddress serverAddress)
Constructs a new instance of the event.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
ServerAddress |
getServerAddress()
Gets the server address associated with this connection.
|
int |
hashCode() |
getClusterIdprivate final ServerAddress serverAddress
public ConnectionEvent(java.lang.String clusterId,
ServerAddress serverAddress)
clusterId - the cluster idserverAddress - the server addresspublic ServerAddress getServerAddress()
public boolean equals(java.lang.Object o)
equals in class ClusterEventpublic int hashCode()
hashCode in class ClusterEvent