public class ChangeTimeHeartbeatMsg extends ReplicationMsg
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ChangeTimeHeartbeatMsg(byte[] in,
short version)
Creates a message from a provided byte array.
|
ChangeTimeHeartbeatMsg(CSN csn)
Constructor of a Change Time Heartbeat message providing the change time value in a CSN.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(short protocolVersion)
Serializes the PDU using the provided replication protocol version.
|
CSN |
getCSN()
Get a CSN with the transmitted change time.
|
boolean |
isRetryable()
Returns if in case of I/O error we should try to send this message again.
|
String |
toString() |
decodeMsg
public ChangeTimeHeartbeatMsg(CSN csn)
csn
- The provided CSN.public ChangeTimeHeartbeatMsg(byte[] in, short version) throws DataFormatException
in
- The provided byte array.version
- The version of the protocol to use to decode the msg.DataFormatException
- When an error occurs.public CSN getCSN()
public byte[] getBytes(short protocolVersion)
ReplicationMsg
getBytes
in class ReplicationMsg
protocolVersion
- The protocol version to use for serialization. The version should normally be older than the current
one.null
if the message isn't supported in that protocol version.public boolean isRetryable()
ReplicationMsg
isRetryable
in class ReplicationMsg
Copyright 2010-2022 ForgeRock AS.