public class LCMessage extends SystemMessage
| Modifier and Type | Field and Description |
|---|---|
boolean |
TRIGGER_LC_LOCALLY |
authenticated| 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) |
getSenderpublic 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.ExternalizablewriteExternal in class SystemMessagejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class SystemMessagejava.io.IOExceptionjava.lang.ClassNotFoundException