java.lang.Object
org.opendaylight.controller.cluster.raft.messages.Payload
org.opendaylight.controller.cluster.raft.persisted.NoopPayload
All Implemented Interfaces:
ControlMessage, Serializable, MigratedSerializable

public final class NoopPayload extends Payload implements ControlMessage, MigratedSerializable
Payload used for no-op log entries that are put into the journal by the PreLeader in order to commit entries from the prior term.
Author:
Thomas Pantelis
See Also:
  • Field Details

    • INSTANCE

      public static final @NonNull NoopPayload INSTANCE
  • Method Details

    • size

      public int size()
      Description copied from class: Payload
      Return the estimate of in-memory size of this payload.
      Specified by:
      size in class Payload
      Returns:
      An estimate of the in-memory size of this payload.
    • serializedSize

      public int serializedSize()
      Description copied from class: Payload
      Return the estimate of serialized size of this payload when passed through serialization. The estimate needs to be reasonably accurate and should err on the side of caution and report a slightly-higher size in face of uncertainty.
      Specified by:
      serializedSize in class Payload
      Returns:
      An estimate of serialized size.
    • isMigrated

      public boolean isMigrated()
      Description copied from interface: MigratedSerializable
      Return true if this object was created from a previous serialization format.
      Specified by:
      isMigrated in interface MigratedSerializable
      Returns:
      true if this object was created from a previous serialization format, false otherwise.
    • writeReplace

      public Object writeReplace()
      Description copied from class: Payload
      Return the serialization proxy for this object.
      Specified by:
      writeReplace in interface MigratedSerializable
      Specified by:
      writeReplace in class Payload
      Returns:
      Serialization proxy