Package com.mongodb.selector
Class WritableServerSelector
-
- com.mongodb.selector.WritableServerSelector
-
- All Implemented Interfaces:
ServerSelector
public final class WritableServerSelector extends implements ServerSelector
Deprecated.A server selector that chooses servers that are writable.- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description WritableServerSelector()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <ServerDescription>
select(ClusterDescription clusterDescription)
Deprecated.Select a list of server descriptions from the given cluster description according to some criteria.toString()
Deprecated.
-
-
-
Method Detail
-
select
public <ServerDescription> select(ClusterDescription clusterDescription)
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
public toString()
Deprecated.- Overrides:
in class
-
-