*/
package org.opendaylight.controller.cluster.raft.client.messages;
+import akka.dispatch.ControlMessage;
import java.io.Serializable;
import org.opendaylight.controller.cluster.raft.base.messages.EmptyExternalizableProxy;
*
* @author Thomas Pantelis
*/
-public final class Shutdown implements Serializable {
+public final class Shutdown implements Serializable, ControlMessage {
+ @java.io.Serial
private static final long serialVersionUID = 1L;
+
public static final Shutdown INSTANCE = new Shutdown();
private Shutdown() {
// Hidden on purpose
}
- private Object writeReplace() {
- return new Proxy();
+ @java.io.Serial
+ private Object readResolve() {
+ return INSTANCE;
}
+ @Deprecated(since = "7.0.0", forRemoval = true)
private static class Proxy extends EmptyExternalizableProxy {
+ @java.io.Serial
private static final long serialVersionUID = 1L;
// checkstyle flags the public modifier as redundant which really doesn't make sense since it clearly isn't