public class ServerAddressSelector extends java.lang.Object implements ServerSelector
Constructor and Description |
---|
ServerAddressSelector(ServerAddress serverAddress)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
ServerAddress |
getServerAddress()
Gets the server address.
|
java.util.List<ServerDescription> |
select(ClusterDescription clusterDescription)
Select a list of server descriptions from the given cluster description according to some criteria.
|
java.lang.String |
toString() |
public ServerAddressSelector(ServerAddress serverAddress)
serverAddress
- the server addresspublic ServerAddress getServerAddress()
public java.util.List<ServerDescription> select(ClusterDescription clusterDescription)
ServerSelector
select
in interface ServerSelector
clusterDescription
- the cluster of servers to select frompublic java.lang.String toString()
toString
in class java.lang.Object