- Reference >
- JavaScript Methods >
- sh.waitForBalancer()
sh.waitForBalancer()¶
-
sh.waitForBalancer(onOrNot, timeout, interval)¶ Parameters: - onOrNot (Boolean) – Whether to wait for the lock to be
on (
true) or off (false). - timeout (integer) – Milliseconds to wait.
- interval (integer) – Milliseconds to sleep.
sh.waitForBalancer()is an internal method that waits for a change in the state of the balancer.- onOrNot (Boolean) – Whether to wait for the lock to be
on (