Package com.mongodb.selector
Class ServerAddressSelector
java.lang.Object
com.mongodb.selector.ServerAddressSelector
- All Implemented Interfaces:
ServerSelector
Deprecated.
A server selector that chooses a server that matches the server address.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionServerAddressSelector
(ServerAddress serverAddress) Deprecated.Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the server address.select
(ClusterDescription clusterDescription) Deprecated.Select a list of server descriptions from the given cluster description according to some criteria.toString()
Deprecated.
-
Constructor Details
-
ServerAddressSelector
Deprecated.Constructs a new instance.- Parameters:
serverAddress
- the server address
-
-
Method Details
-
getServerAddress
Deprecated.Gets the server address.- Returns:
- the server address
-
select
Deprecated.Description copied from interface:ServerSelector
Select a list of server descriptions from the given cluster description according to some criteria.- Specified by:
select
in interfaceServerSelector
- Parameters:
clusterDescription
- the cluster of servers to select from- Returns:
- a non-null list of ServerDescriptions that meet the requirements of this ServerSelector. This may be empty.
-
toString
Deprecated.
-