Class NoopPayload
java.lang.Object
org.opendaylight.controller.cluster.raft.messages.Payload
org.opendaylight.controller.cluster.raft.persisted.NoopPayload
- All Implemented Interfaces:
akka.dispatch.ControlMessage,Serializable
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
-
-
Method Details
-
size
public int size()Description copied from class:PayloadReturn the estimate of in-memory size of this payload. -
serializedSize
public int serializedSize()Description copied from class:PayloadReturn 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:
serializedSizein classPayload- Returns:
- An estimate of serialized size.
-
writeReplace
Description copied from class:PayloadReturn the serialization proxy for this object.- Specified by:
writeReplacein classPayload- Returns:
- Serialization proxy
-