Package com.mongodb.selector
Class PrimaryServerSelector
java.lang.Object
com.mongodb.selector.PrimaryServerSelector
- All Implemented Interfaces:
ServerSelector
Deprecated.
A server selector that chooses servers that are primaries.
- Since:
- 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionselect(ClusterDescription clusterDescription) Deprecated.Select a list of server descriptions from the given cluster description according to some criteria.toString()Deprecated.
-
Constructor Details
-
PrimaryServerSelector
public PrimaryServerSelector()Deprecated.
-
-
Method Details
-
select
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.
-
toString
Deprecated.
-
ReadPreferenceServerSelectororWritableServerSelector, depending on your requirements