public class LCMessage extends SystemMessage
Modifier and Type | Field and Description |
---|---|
boolean |
TRIGGER_LC_LOCALLY |
authenticated, sender
Constructor and Description |
---|
LCMessage()
Empty constructor
|
LCMessage(int from,
int type,
int ts,
byte[] payload)
Constructor
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getPayload()
Obter data of the message
|
int |
getReg()
Get timestamp of leader change and synchronization
|
int |
getType()
Get type of message
|
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
getSender
public LCMessage()
public LCMessage(int from, int type, int ts, byte[] payload)
from
- replica that creates this messagetype
- type of the message (STOP, SYNC, CATCH-UP)ts
- timestamp of leader change and synchronizationpayload
- dada that comes with the messagepublic int getType()
public int getReg()
public byte[] getPayload()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class SystemMessage
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class SystemMessage
java.io.IOException
java.lang.ClassNotFoundException