public void await() throws InterruptedException {
        this.lock.lock();
        try {
            while (this.state > 0) {
                this.busyCond.await();
            }
        } finally {
            this.lock.unlock();
        }
    }
CountDown event.

@author boyan (boyan@alibaba-inc.com)

2018-Apr-17 1:36:36 PM
jraft-core/src/main/java/com/alipay/sofa/jraft/util/CountDownEvent.java