classafMongo::HuntThePrimary

sys::Obj
  afMongo::HuntThePrimary
huntThePrimary

Source

Uri huntThePrimary()

(Advanced) Searches the replica set for the Master node and instructs all new connections to connect to it. Throws MongoErr if a primary can not be found.

This method should be followed with a call to emptyPool().

make

Source

new make(Uri connectionUrl, Bool ssl)