Class ReadPreference
Represents a read preference.
- Inheritance
-
Read
Preference
- Implements
- Inherited Members
Constructors
- ReadPreference(ReadPreferenceMode, IEnumerable<TagSet>, TimeSpan?, ReadPreferenceHedge)
Initializes a new instance of the Read
Preference class.
Properties
- Hedge
Gets the hedge.
- Max
Staleness Gets the maximum staleness.
- Nearest
Gets an instance of ReadPreference that represents a Nearest read preference.
- Primary
Gets an instance of ReadPreference that represents a Primary read preference.
- Primary
Preferred Gets an instance of ReadPreference that represents a PrimaryPreferred read preference.
- Read
Preference Mode Gets the read preference mode.
- Secondary
Gets an instance of ReadPreference that represents a Secondary read preference.
- Secondary
Preferred Gets an instance of ReadPreference that represents a SecondaryPreferred read preference.
- Tag
Sets Gets the tag sets.
Methods
- From
Bson Document(Bson Document) Creates a new ReadPreference instance from a BsonDocument.
- With(Read
Preference Hedge) Returns a new instance of ReadPreference with some values changed.
- With(Read
Preference Mode) Returns a new instance of ReadPreference with some values changed.
- With(IEnumerable<TagSet>)
Returns a new instance of ReadPreference with some values changed.
- With(Time
Span?) Returns a new instance of ReadPreference with some values changed.