Static Methodswift-mongodb 0.27.0MongoDriver->Mongo
secondaryPreferred(maxStaleness:tagSets:hedge:)
Mongo.ReadPreference.swift:51static func secondaryPreferred(maxStaleness seconds: Seconds? = nil, tagSets: [TagSet]? = nil, hedge hedging: Hedging? = nil) -> Mongo.ReadPreference
Other members in extension
Types
struct Eligibility
enum Hedging
enum Mode
struct TagSet
A MongoDB tag set.
Type members
static var nearest: `Self`
static var primaryPreferred: `Self`
static var secondary: `Self`
static var secondaryPreferred: `Self`
static func nearest(maxStaleness: Seconds?, tagSets: [TagSet]?, hedge: Hedging?
) -> Mongo.ReadPreference static func primaryPreferred(maxStaleness: Seconds?, tagSets: [TagSet]?, hedge: Hedging?
) -> Mongo.ReadPreference static func secondary(maxStaleness: Seconds?, tagSets: [TagSet]?, hedge: Hedging?
) -> Mongo.ReadPreference