package org.opendaylight.controller.cluster.raft.messages;
-public class RequestVoteReply {
+import java.io.Serializable;
- // currentTerm, for candidate to update itself
- private final long term;
+public class RequestVoteReply extends AbstractRaftRPC implements Serializable {
// true means candidate received vot
private final boolean voteGranted;
public RequestVoteReply(long term, boolean voteGranted) {
- this.term = term;
+ super(term);
this.voteGranted = voteGranted;
}