Method With
With(ReadPreferenceHedge)
Returns a new instance of ReadPreference with some values changed.
Parameters
hedge
ReadPreference Hedge The hedge.
Returns
- Read
Preference A new instance of ReadPreference.
With(ReadPreferenceMode)
Returns a new instance of ReadPreference with some values changed.
Parameters
mode
ReadPreference Mode The read preference mode.
Returns
- Read
Preference A new instance of ReadPreference.
With(IEnumerable<TagSet>)
Returns a new instance of ReadPreference with some values changed.
Parameters
tagSets
IEnumerable<TagSet >The tag sets.
Returns
- Read
Preference A new instance of ReadPreference.
With(TimeSpan?)
Returns a new instance of ReadPreference with some values changed.
Parameters
maxStaleness
TimeSpan ?The maximum staleness.
Returns
- Read
Preference A new instance of ReadPreference.