@Override
    public boolean hasAvailableCapacity(int requiredCapacity) {
        if (this.shutdownLatch != null) {
            return false;
        }
        return this.taskQueue.hasAvailableCapacity(requiredCapacity);
    }
Apply task for disruptor.

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

2018-Apr-03 11:12:35 AM
jraft-core/src/main/java/com/alipay/sofa/jraft/core/FSMCallerImpl.java