Specifies a maximum replication lag, or "staleness", for reads from
secondaries. When a secondary's estimated staleness exceeds
this value, the driver stops using it for read operations.
If specified, the max staleness must be a signed 32-bit integer
greater than or equal to
MongoDB\Driver\ReadPreference::SMALLEST_MAX_STALENESS_SECONDS.
Defaults to
MongoDB\Driver\ReadPreference::NO_MAX_STALENESS,
which means that the driver will not consider a secondary's lag
when choosing where to direct a read operation.
This option is not compatible with the
MongoDB\Driver\ReadPreference::RP_PRIMARY mode.
Specifying a max staleness also requires all MongoDB instances in
the deployment to be using MongoDB 3.4+. An exception will be thrown
at execution time if any MongoDB instances in the deployment are of
an older server version.