public class ErrorMsg extends RoutableMsg
This message is sent by a server or a replication server when an error is detected in the context of a total update.
destination, senderId
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ErrorMsg(ReplicaId destination,
LocalizableMessage details)
Creates an ErrorMsg.
|
ErrorMsg(ServerId<?> sender,
ReplicaId destination,
LocalizableMessage details)
Creates an ErrorMsg providing the destination server.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(short version)
Serializes the PDU using the provided replication protocol version.
|
long |
getCreationTime()
Get the creation time of this message.
|
LocalizableMessage |
getDetails()
Get the details from this message.
|
String |
getMsgID()
Get the msgID from this message.
|
void |
setCreationTime(long creationTime)
Get the creation time of this message.
|
String |
toString()
Returns a string representation of the message.
|
getDestination, getSenderID
decodeMsg, isRetryable
public ErrorMsg(ServerId<?> sender, ReplicaId destination, LocalizableMessage details)
Both a replica and a replication server can send an error message, so sender
must be able to represent
either a ReplicaId
or a ReplicationServerId
.
sender
- The server ID of the server that send this message.destination
- The destination server or servers of this message.details
- The message containing the details of the error.public ErrorMsg(ReplicaId destination, LocalizableMessage details)
destination
- replication server iddetails
- details of the errorpublic LocalizableMessage getDetails()
public String getMsgID()
public byte[] getBytes(short version)
ReplicationMsg
getBytes
in class ReplicationMsg
version
- 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 String toString()
toString
in class RoutableMsg
public long getCreationTime()
public void setCreationTime(long creationTime)
creationTime
- the creation time of this message.Copyright 2010-2022 ForgeRock AS.