Class NoopPayload
java.lang.Object
org.opendaylight.controller.cluster.raft.messages.Payload
org.opendaylight.controller.cluster.raft.spi.AbstractRaftCommand
org.opendaylight.controller.cluster.raft.persisted.NoopPayload
- All Implemented Interfaces:
Serializable
,org.apache.pekko.dispatch.ControlMessage
,RaftCommand
,StateMachineCommand
,Immutable
@NonNullByDefault
public final class NoopPayload
extends AbstractRaftCommand
implements org.apache.pekko.dispatch.ControlMessage
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.controller.cluster.raft.spi.StateMachineCommand
StateMachineCommand.Reader<T extends StateMachineCommand>, StateMachineCommand.Support<T extends StateMachineCommand>, StateMachineCommand.Writer<T extends StateMachineCommand>
-
Field Summary
Fields -
Method Summary
Methods inherited from class org.opendaylight.controller.cluster.raft.messages.Payload
toSerialForm
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.controller.cluster.raft.spi.StateMachineCommand
toSerialForm
-
Field Details
-
INSTANCE
-
-
Method Details
-
reader
-
writer
-
size
public int size()Description copied from class:Payload
Return the estimate of 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 classPayload
- Returns:
- An estimate of serialized size.
-
writeReplace
Description copied from class:Payload
Return the serialization proxy for this object.- Specified by:
writeReplace
in classPayload
- Returns:
- Serialization proxy
-