@Override
    public void appendPendingClosure(final Closure closure) {
        this.lock.lock();
        try {
            this.queue.add(closure);
        } finally {
            this.lock.unlock();
        }
    }
Closure queue implementation.

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

2018-Mar-28 11:44:01 AM
jraft-core/src/main/java/com/alipay/sofa/jraft/closure/ClosureQueueImpl.java