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描述activePingsarray An array of active pings from themongoscollection.mongos集合中的一组活动ping。timeoutinteger Number of milliseconds to wait for a change in ping state.等待ping状态更改的毫秒数。intervalinteger Number of milliseconds to sleep in each waiting cycle.每个等待周期中要休眠的毫秒数。