Class ServerConfigurationPayload
java.lang.Object
org.opendaylight.controller.cluster.raft.messages.Payload
org.opendaylight.controller.cluster.raft.persisted.ServerConfigurationPayload
- All Implemented Interfaces:
Serializable
,PersistentPayload
Payload data for server configuration log entries.
- Author:
- Thomas Pantelis
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
@NonNull List
<ServerInfo> int
hashCode()
int
Return the estimate of serialized size of this payload when passed through serialization.int
size()
Return the estimate of in-memory size of this payload.toString()
protected Object
Return the serialization proxy for this object.
-
Constructor Details
-
ServerConfigurationPayload
-
-
Method Details
-
getServerConfig
-
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.
-
hashCode
public int hashCode() -
equals
-
toString
-
writeReplace
Description copied from class:Payload
Return the serialization proxy for this object.- Specified by:
writeReplace
in classPayload
- Returns:
- Serialization proxy
-