ReadPreferenceServerSelector
or WritableServerSelector
, depending on your requirements@Deprecated public final class PrimaryServerSelector extends Object implements ServerSelector
Constructor and Description |
---|
PrimaryServerSelector()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<ServerDescription> |
select(ClusterDescription clusterDescription)
Deprecated.
Select a list of server descriptions from the given cluster description according to some criteria.
|
String |
toString()
Deprecated.
|
public List<ServerDescription> select(ClusterDescription clusterDescription)
ServerSelector
select
in interface ServerSelector
clusterDescription
- the cluster of servers to select from