@Override
    public boolean init(final BallotBoxOptions opts) {
        if (opts.getWaiter() == null || opts.getClosureQueue() == null) {
            LOG.error("waiter or closure queue is null.");
            return false;
        }
        this.opts = opts;
        this.waiter = opts.getWaiter();
        this.closureQueue = opts.getClosureQueue();
        this.lastCommittedIndex = opts.getLastCommittedIndex();
        return true;
    }
Ballot box for voting.
@author boyan (boyan@alibaba-inc.com)

2018-Apr-04 2:32:10 PM
jraft-core/src/main/java/com/alipay/sofa/jraft/core/BallotBox.java