LockManagerSqlChangeDispatchCoordinator is only using it in its parent constructor, and the usage in SqlChangeDispatchCoordinator seems pretty straight forward as well:
SqlChangeDispatchCoordinator
/** * @return ILoadBalancer the repo's database load balancer. */ private function getRepoLB(): ILoadBalancer { return $this->LBFactory->getMainLB( $this->repoDB ); } /** * @return IDatabase A connection to the repo's master database */ private function getRepoMaster(): IDatabase { return $this->getRepoLB()->getConnectionRef( DB_PRIMARY, [], $this->repoDB ); } /** * @return IDatabase A connection to the repo's replica database */ private function getRepoReplica(): IDatabase { return $this->getRepoLB()->getConnectionRef( DB_REPLICA, [], $this->repoDB ); }
SqlChangeDispatchCoordinator
$this->LBFactory->waitForReplication( [ 'domain' => $this->repoDB ] );