Merge "Make Raft messages serializable"
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / messages / RequestVoteReply.java
index 7acafecfbbd3c001a811c7377327331bb31977e1..a658ab7d810685c53b90ed6955ce5df5273b1b10 100644 (file)
@@ -8,16 +8,15 @@
 
 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;
     }