public class ReadPreferenceServerSelector extends java.lang.Object implements ServerSelector
Constructor and Description |
---|
ReadPreferenceServerSelector(ReadPreference readPreference)
Gets the read preference.
|
Modifier and Type | Method and Description |
---|---|
ReadPreference |
getReadPreference()
Gets the read preference.
|
java.util.List<ServerDescription> |
select(ClusterDescription clusterDescription)
Select a list of server descriptions from the given cluster description according to some criteria.
|
java.lang.String |
toString() |
public ReadPreferenceServerSelector(ReadPreference readPreference)
readPreference
- the read preferencepublic ReadPreference getReadPreference()
public java.util.List<ServerDescription> select(ClusterDescription clusterDescription)
ServerSelector
select
in interface ServerSelector
clusterDescription
- the cluster of servers to select frompublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved