public class ReplicaOfflineMsg extends UpdateMsg
assuredFlag, assuredMode, csn, protocolVersion, safeDataLevel
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 |
---|---|
boolean |
contributesToDomainState()
Whether the current message can update the "ds-sync-state" attribute.
|
byte[] |
getBytes(short protocolVersion)
This implementation is only called during unit testing, so we are free to
force the protocol version.
|
int |
size()
Return the number of bytes used by this message.
|
String |
toString() |
compareTo, decodeHeader, encodeHeader, equals, getAssuredMode, getBytes, getCSN, getPayload, getSafeDataLevel, getVersion, hashCode, isAssured, setAssured, setAssuredMode, setSafeDataLevel
generateMsg
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)
public int size()
public boolean contributesToDomainState()
contributesToDomainState
in class UpdateMsg
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.