public class ReplicaSetStatus
Keeps track of the status of a replica set based on information provided
by heartbeat events. This status provides a replica set lag estimate, which
can be used to decide whether secondaries are sufficiently up-to-date and
read operations can be sent to a secondary. This is particularly useful when
causal consistent client sessions are used with the MongoDB Java driver. Read
operations shouldn't be sent to a secondary when it lags too much behind,
otherwise the read operation will block until it was able to catch up.