Gets a read preference that forces reads to the primary or a secondary with one of the given sets of tags.
Gets a read preference that forces reads to the primary or a secondary with one of the given sets of tags. The driver will look for a secondary with each tag set in the given list, stopping after one is found, or the primary if none are available.
the list of tag sets to limit the list of secondaries to
the max allowable staleness of secondaries. A zero duration indicates the absence of a maximum.
ReadPreference which reads nearest node respective of tags.
1.2
Requires MongoDB 3.4 or greater
Gets a read preference that forces reads to the primary or a secondary with one of the given sets of tags.
Gets a read preference that forces reads to the primary or a secondary with one of the given sets of tags. The driver will look for a secondary with each tag set in the given list, stopping after one is found, or the primary if none are available.
the list of tag sets to limit the list of secondaries to
ReadPreference which reads nearest node respective of tags.
Gets a read preference that forces reads to the primary or a secondary with the given set of tags.
Gets a read preference that forces reads to the primary or a secondary with the given set of tags.
the set of tags to limit the list of secondaries to
the max allowable staleness of secondaries. A zero duration indicates the absence of a maximum.
ReadPreference which reads nearest node respective of tags.
1.2
Requires MongoDB 3.4 or greater
Gets a read preference that forces reads to the primary or a secondary with the given set of tags.
Gets a read preference that forces reads to the primary or a secondary with the given set of tags.
the set of tags to limit the list of secondaries to
ReadPreference which reads nearest node respective of tags.
Gets a read preference that forces reads to a primary or a secondary.
Gets a read preference that forces reads to a primary or a secondary.
the max allowable staleness of secondaries. A zero duration indicates the absence of a maximum.
ReadPreference which reads nearest
1.2
Requires MongoDB 3.4 or greater
Gets a read preference that forces reads to a primary or a secondary.
Gets a read preference that forces reads to a primary or a secondary.
ReadPreference which reads nearest
Gets a read preference that forces read to the primary.
Gets a read preference that forces read to the primary.
ReadPreference which reads from primary only
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with one of the given sets of tags.
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with one of the given sets of tags. The driver will look for a secondary with each tag set in the given list, stopping after one is found, or failing if no secondary can be found that matches any of the tag sets in the list.
the list of tag sets to limit the list of secondaries to
the max allowable staleness of secondaries. A zero duration indicates the absence of a maximum.
ReadPreference which reads primary if available, otherwise a secondary respective of tags.
1.2
Requires MongoDB 3.4 or greater
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with one of the given sets of tags.
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with one of the given sets of tags. The driver will look for a secondary with each tag set in the given list, stopping after one is found, or failing if no secondary can be found that matches any of the tag sets in the list.
the list of tag sets to limit the list of secondaries to
ReadPreference which reads primary if available, otherwise a secondary respective of tags.
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with the given set of tags.
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with the given set of tags.
the set of tags to limit the list of secondaries to.
the max allowable staleness of secondaries. A zero duration indicates the absence of a maximum.
ReadPreference which reads primary if available, otherwise a secondary respective of tags.
1.2
Requires MongoDB 3.4 or greater
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with the given set of tags.
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with the given set of tags.
the set of tags to limit the list of secondaries to.
ReadPreference which reads primary if available, otherwise a secondary respective of tags.
Gets a read preference that forces reads to the primary if available, otherwise to a secondary.
Gets a read preference that forces reads to the primary if available, otherwise to a secondary.
the max allowable staleness of secondaries. A zero duration indicates the absence of a maximum.
ReadPreference which reads primary if available.
1.2
Requires MongoDB 3.4 or greater
Gets a read preference that forces reads to the primary if available, otherwise to a secondary.
Gets a read preference that forces reads to the primary if available, otherwise to a secondary.
ReadPreference which reads primary if available.
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
Gets a read preference that forces reads to a secondary with one of the given sets of tags. The driver will look for a secondary with each tag set in the given list, stopping after one is found, or failing if no secondary can be found that matches any of the tag sets in the list.
the list of tag sets to limit the list of secondaries to
the max allowable staleness of secondaries. A zero duration indicates the absence of a maximum.
ReadPreference which reads secondary respective of tags.
1.2
Requires MongoDB 3.4 or greater
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
Gets a read preference that forces reads to a secondary with one of the given sets of tags. The driver will look for a secondary with each tag set in the given list, stopping after one is found, or failing if no secondary can be found that matches any of the tag sets in the list.
the list of tag sets to limit the list of secondaries to
ReadPreference which reads secondary respective of tags.
Gets a read preference that forces reads to a secondary with the given set of tags.
Gets a read preference that forces reads to a secondary with the given set of tags.
the set of tags to limit the list of secondaries to
the max allowable staleness of secondaries. A zero duration indicates the absence of a maximum.
ReadPreference which reads secondary respective of tags.
1.2
Requires MongoDB 3.4 or greater
Gets a read preference that forces reads to a secondary with the given set of tags.
Gets a read preference that forces reads to a secondary with the given set of tags.
the set of tags to limit the list of secondaries to
ReadPreference which reads secondary respective of tags.
Gets a read preference that forces reads to a secondary.
Gets a read preference that forces reads to a secondary.
the max allowable staleness of secondaries. A zero duration indicates the absence of a maximum.
ReadPreference which reads secondary.
1.2
Requires MongoDB 3.4 or greater
Gets a read preference that forces reads to a secondary.
Gets a read preference that forces reads to a secondary.
ReadPreference which reads secondary.
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
Gets a read preference that forces reads to a secondary with one of the given sets of tags. The driver will look for a secondary with each tag set in the given list, stopping after one is found, or the primary if none are available.
the list of tag sets to limit the list of secondaries to
the max allowable staleness of secondaries. A zero duration indicates the absence of a maximum.
ReadPreference which reads secondary if available respective of tags, otherwise from primary irrespective of tags.
1.2
Requires MongoDB 3.4 or greater
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
Gets a read preference that forces reads to a secondary with one of the given sets of tags. The driver will look for a secondary with each tag set in the given list, stopping after one is found, or the primary if none are available.
the list of tag sets to limit the list of secondaries to
ReadPreference which reads secondary if available respective of tags, otherwise from primary irrespective of tags.
Gets a read preference that forces reads to a secondary with the given set of tags, or the primary is none are available.
Gets a read preference that forces reads to a secondary with the given set of tags, or the primary is none are available.
the set of tags to limit the list of secondaries to
the max allowable staleness of secondaries. A zero duration indicates the absence of a maximum.
ReadPreference which reads secondary if available respective of tags, otherwise from primary irrespective of tags.
1.2
Requires MongoDB 3.4 or greater
Gets a read preference that forces reads to a secondary with the given set of tags, or the primary is none are available.
Gets a read preference that forces reads to a secondary with the given set of tags, or the primary is none are available.
the set of tags to limit the list of secondaries to
ReadPreference which reads secondary if available respective of tags, otherwise from primary irrespective of tags.
Gets a read preference that forces reads to a secondary if one is available, otherwise to the primary.
Gets a read preference that forces reads to a secondary if one is available, otherwise to the primary.
the max allowable staleness of secondaries. A zero duration indicates the absence of a maximum.
ReadPreference which reads secondary if available, otherwise from primary.
1.2
Requires MongoDB 3.4 or greater
Gets a read preference that forces reads to a secondary if one is available, otherwise to the primary.
Gets a read preference that forces reads to a secondary if one is available, otherwise to the primary.
ReadPreference which reads secondary if available, otherwise from primary.
Creates a taggable read preference from the given read preference name and list of tag sets.
Creates a taggable read preference from the given read preference name and list of tag sets.
the name of the read preference
the list of tag sets
the max allowable staleness of secondaries. A zero duration indicates the absence of a maximum.
the taggable read preference
1.2
Requires MongoDB 3.4 or greater
Creates a taggable read preference from the given read preference name and list of tag sets.
Creates a taggable read preference from the given read preference name and list of tag sets.
the name of the read preference
the list of tag sets
the taggable read preference
Creates a read preference from the given read preference name.
Creates a read preference from the given read preference name.
the name of the read preference
the read preference
The preferred replica set members to which a query or command can be sent.
1.0