public void setLeaderId(PeerId leaderId) {
        this.leaderId = leaderId;
    }
The leader change context, contains:
<ul>
<li>leaderId: the leader peer id.</li>
<li>term: the leader term.</li>
<li>Status: context status.</li>
</ul>
@author boyan (boyan@alibaba-inc.com)

2018-Mar-13 3:23:48 PM
jraft-core/src/main/java/com/alipay/sofa/jraft/entity/LeaderChangeContext.java