Package org.nustaq.reallive.messages
Class UpdateMessage
java.lang.Object
org.nustaq.reallive.messages.UpdateMessage
- All Implemented Interfaces:
Serializable,ChangeMessage
Created by moelrue on 03.08.2015.
Processing if received as change request:
- if diff is != null => apply diff
- else take new Record and compare against old
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateMessage(int senderId, Diff diff, Record newRecord) UpdateMessage(int senderId, Diff diff, Record newRecord, boolean addIfNotExists) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nustaq.reallive.api.ChangeMessage
generateChangeBroadcast, isAdd, isDoneMsg, updateLastModified
-
Constructor Details
-
UpdateMessage
-
UpdateMessage
-
-
Method Details
-
senderId
- Specified by:
senderIdin interfaceChangeMessage
-
setForcedUpdateFields
-
getType
public int getType()- Specified by:
getTypein interfaceChangeMessage
-
getSenderId
public int getSenderId()- Specified by:
getSenderIdin interfaceChangeMessage
-
getKey
- Specified by:
getKeyin interfaceChangeMessage
-
reduced
- Specified by:
reducedin interfaceChangeMessage
-
omit
- Specified by:
omitin interfaceChangeMessage
-
getDiff
-
getNewRecord
-
isAddIfNotExists
public boolean isAddIfNotExists() -
getOldRecord
-
getRecord
- Specified by:
getRecordin interfaceChangeMessage
-
toString
-