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 java.io.Serializable;
11 import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload;
14 * Payload used for no-op log entries that are put into the journal by the PreLeader in order to commit
15 * entries from the prior term.
17 * @author Thomas Pantelis
19 public final class NoopPayload extends Payload implements Serializable {
20 public static final NoopPayload INSTANCE = new NoopPayload();
22 // There is no need for Externalizable
23 private static final class Proxy implements Serializable {
24 private static final long serialVersionUID = 1L;
26 @SuppressWarnings("static-method")
27 private Object readResolve() {
32 private static final long serialVersionUID = 1L;
33 private static final Proxy PROXY = new Proxy();
35 private NoopPayload() {
43 @SuppressWarnings("static-method")
44 private Object writeReplace() {