OPTIONS
翻译或纠错本页面

sh.waitForDLock()

Definition

sh.waitForDLock(lockname, wait, timeout, interval)

Waits until the specified distributed lock changes state. sh.waitForDLock() is an internal method that takes the following arguments:

Parameter Type Description
lockname string The name of the distributed lock.
wait Boolean Optional. Set to true to ensure the balancer is now active. Set to false to wait until balancing stops and becomes inactive.
timeout integer Milliseconds to wait.
interval integer Milliseconds to sleep in each waiting cycle.