sh.waitForPingChange()

On this page本页内容

Definition定义

sh.waitForPingChange(activePings, timeout, interval)

sh.waitForPingChange() waits for a change in ping state of one of the activepings, and only returns when the specified ping changes state.等待其中一个activeping的ping状态更改,并且仅在指定的ping更改状态时返回。

Parameter参数Type类型Description描述
activePingsarrayAn array of active pings from the mongos collection.mongos集合中的活动ping数组。
timeoutintegerNumber of milliseconds to wait for a change in ping state.等待ping状态更改的毫秒数。
intervalintegerNumber of milliseconds to sleep in each waiting cycle.每个等待周期中睡眠的毫秒数。
←  sh.waitForBalancerOff()sh.updateZoneKeyRange() →