public boolean isPriorityNotElected() {
        return this.priority == ElectionPriority.NotElected;
    }
To judge whether this node can participate in election or not.

@return the restul that whether this node can participate in election or not.
jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId.java