Class ServerConfigurationPayload
- java.lang.Object
-
- org.opendaylight.controller.cluster.raft.messages.Payload
-
- org.opendaylight.controller.cluster.raft.persisted.ServerConfigurationPayload
-
- All Implemented Interfaces:
Serializable,PersistentPayload
public final class ServerConfigurationPayload extends Payload implements PersistentPayload
Payload data for server configuration log entries.- Author:
- Thomas Pantelis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServerConfigurationPayload(@NonNull List<ServerInfo> serverConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)@NonNull List<ServerInfo>getServerConfig()inthashCode()intserializedSize()Return the estimate of serialized size of this payload when passed through serialization.intsize()Return the estimate of in-memory size of this payload.StringtoString()protected ObjectwriteReplace()Return the serialization proxy for this object.
-
-
-
Constructor Detail
-
ServerConfigurationPayload
public ServerConfigurationPayload(@NonNull List<ServerInfo> serverConfig)
-
-
Method Detail
-
getServerConfig
public @NonNull List<ServerInfo> getServerConfig()
-
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
protected Object writeReplace()
Description copied from class:PayloadReturn the serialization proxy for this object.- Specified by:
writeReplacein classPayload- Returns:
- Serialization proxy
-
-