public void setEntries(final List<LogEntry> entries) {
            this.entries = entries;
            if (entries != null) {
                this.nEntries = entries.size();
            } else {
                this.nEntries = 0;
            }
        }
Closure to to run in stable state.

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

2018-Apr-04 4:35:29 PM
jraft-core/src/main/java/com/alipay/sofa/jraft/storage/LogManager.java