use of org.opendaylight.controller.cluster.raft.persisted.UpdateElectionTerm in project controller by opendaylight.
the class ElectionTermImpl method updateAndPersist.
@Override
public void updateAndPersist(long newTerm, String newVotedFor) {
update(newTerm, newVotedFor);
// FIXME : Maybe first persist then update the state
persistence.persist(new UpdateElectionTerm(this.currentTerm, this.votedFor), NoopProcedure.instance());
}
Aggregations