public class UpdateMessage<K> extends Object implements ChangeMessage<K>
| Constructor and Description |
|---|
UpdateMessage(Diff diff,
Record<K> newRecord,
Set<String> forcedUpdateFields) |
UpdateMessage(Diff diff,
Record<K> newRecord,
Set<String> forcedUpdateFields,
boolean addIfNotExists) |
| Modifier and Type | Method and Description |
|---|---|
Diff |
getDiff() |
Set<String> |
getForcedUpdateFields() |
K |
getKey() |
Record<K> |
getNewRecord() |
Record<K> |
getOldRecord() |
Record<K> |
getRecord() |
int |
getType() |
boolean |
isAddIfNotExists() |
ChangeMessage |
reduced(String[] reducedFields) |
void |
setForcedUpdateFields(Set<String> forcedUpdateFields) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisAdd, isDoneMsgpublic Set<String> getForcedUpdateFields()
getForcedUpdateFields in interface ChangeMessage<K>public int getType()
getType in interface ChangeMessage<K>public K getKey()
getKey in interface ChangeMessage<K>public ChangeMessage reduced(String[] reducedFields)
reduced in interface ChangeMessage<K>public Diff getDiff()
public boolean isAddIfNotExists()
public Record<K> getRecord()
getRecord in interface ChangeMessage<K>Copyright © 2017. All rights reserved.