2 * Copyright (c) 2016 Brocade Communications Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.cluster.raft.persisted;
10 import akka.dispatch.ControlMessage;
11 import java.io.Serializable;
12 import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload;
15 * Payload used for no-op log entries that are put into the journal by the PreLeader in order to commit
16 * entries from the prior term.
18 * @author Thomas Pantelis
20 public final class NoopPayload extends Payload implements Serializable, ControlMessage {
21 public static final NoopPayload INSTANCE = new NoopPayload();
23 // There is no need for Externalizable
24 private static final class Proxy implements Serializable {
25 private static final long serialVersionUID = 1L;
27 private Object readResolve() {
32 private static final long serialVersionUID = 1L;
33 private static final Proxy PROXY = new Proxy();
35 private NoopPayload() {
43 private Object writeReplace() {