Take snapshot after recovery on migrated messages
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / base / messages / ElectionTimeout.java
index a844849f150ef30cbba16fff31fb72a46371d55d..8dd49e1cad4982aad17d1084671c2a792aa7078f 100644 (file)
@@ -10,5 +10,18 @@ package org.opendaylight.controller.cluster.raft.base.messages;
 
 import java.io.Serializable;
 
-public class ElectionTimeout implements Serializable {
+/**
+ * Message sent to indicate the current election term has timed out.
+ */
+public final class ElectionTimeout implements Serializable {
+    private static final long serialVersionUID = 1L;
+    public static final ElectionTimeout INSTANCE = new ElectionTimeout();
+
+    private ElectionTimeout() {
+        // Hidden on purpose
+    }
+
+    private Object readResolve() {
+        return INSTANCE;
+    }
 }