Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Move {Identifiable,Persistent,}Payload
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
messages
/
AbstractRaftRPC.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/AbstractRaftRPC.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/AbstractRaftRPC.java
index 0122d45c3095962161712643e6c3c4fb0fbf6e7b..76edc54990c0c6a94de31be56adcc6b600880d79 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/AbstractRaftRPC.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/AbstractRaftRPC.java
@@
-5,27
+5,23
@@
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.controller.cluster.raft.messages;
package org.opendaylight.controller.cluster.raft.messages;
-public class AbstractRaftRPC implements RaftRPC {
- private static final long serialVersionUID = 1L;
+public abstract class AbstractRaftRPC implements RaftRPC {
+ private static final long serialVersionUID = -6061342433962854822L;
+
// term
// term
- pr
otected
long term;
+ pr
ivate final
long term;
-
protected AbstractRaftRPC(long term)
{
+
AbstractRaftRPC(final long term)
{
this.term = term;
}
this.term = term;
}
- // added for testing while serialize-messages=on
- public AbstractRaftRPC() {
- }
-
- public long getTerm() {
+ @Override
+ public final long getTerm() {
return term;
}
return term;
}
- public void setTerm(long term) {
- this.term = term;
- }
+ // All implementations must use Externalizable Proxy pattern
+ abstract Object writeReplace();
}
}