public class ReplicaOfflineMsg extends UpdateMsg
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ReplicaOfflineMsg(byte[] in)
Creates a message by deserializing it from the provided byte array.
|
ReplicaOfflineMsg(CSN offlineCSN)
Constructor of a replica offline message providing the offline timestamp in a CSN.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(short protocolVersion)
Serializes the PDU using the provided replication protocol version.
|
int |
size()
Return the number of bytes used by this message.
|
compareTo, equals, getBytes, getCSN, getVersion, hashCode, toString
decodeMsg, isRetryable
public ReplicaOfflineMsg(CSN offlineCSN)
offlineCSN
- the provided offline CSNpublic ReplicaOfflineMsg(byte[] in) throws DataFormatException
in
- The provided byte array.DataFormatException
- When an error occurs during decoding .public byte[] getBytes(short protocolVersion)
ReplicationMsg
Copyright 2010-2022 ForgeRock AS.