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.activepings
的ping状态的更改,并且仅在指定的ping更改状态时返回。Parameter参数Type类型Description描述activePings
array An array of active pings from themongos
collection.mongos
集合中的一组活动ping。timeout
integer Number of milliseconds to wait for a change in ping state.等待ping状态更改的毫秒数。interval
integer Number of milliseconds to sleep in each waiting cycle.每个等待周期中要休眠的毫秒数。