Package com.mongodb.selector
Class ServerAddressSelector
- java.lang.Object
 - 
- com.mongodb.selector.ServerAddressSelector
 
 
- 
- All Implemented Interfaces:
 ServerSelector
@Deprecated public class ServerAddressSelector extends Object implements ServerSelector
Deprecated.A server selector that chooses a server that matches the server address.- Since:
 - 3.0
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ServerAddressSelector(ServerAddress serverAddress)Deprecated.Constructs a new instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServerAddressgetServerAddress()Deprecated.Gets the server address.List<ServerDescription>select(ClusterDescription clusterDescription)Deprecated.Select a list of server descriptions from the given cluster description according to some criteria.StringtoString()Deprecated. 
 - 
 
- 
- 
Constructor Detail
- 
ServerAddressSelector
public ServerAddressSelector(ServerAddress serverAddress)
Deprecated.Constructs a new instance.- Parameters:
 serverAddress- the server address
 
 - 
 
- 
Method Detail
- 
getServerAddress
public ServerAddress getServerAddress()
Deprecated.Gets the server address.- Returns:
 - the server address
 
 
- 
select
public List<ServerDescription> select(ClusterDescription clusterDescription)
Deprecated.Description copied from interface:ServerSelectorSelect a list of server descriptions from the given cluster description according to some criteria.- Specified by:
 selectin 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.
 
 
 - 
 
 -