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