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.
|
String |
toString() |
generateMsg
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 byte[] getBytes(short protocolVersion)
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.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.