package org.opendaylight.controller.cluster.raft.messages;
public class AbstractRaftRPC implements RaftRPC {
+ private static final long serialVersionUID = -6061342433962854822L;
+
// term
- protected long term;
+ private long term;
- protected AbstractRaftRPC(long term){
+ protected AbstractRaftRPC(long term) {
this.term = term;
}
+ // added for testing while serialize-messages=on
+ public AbstractRaftRPC() {
+ }
+
+ @Override
public long getTerm() {
return term;
}
-
+ protected void setTerm(long term) {
+ this.term = term;
+ }
}