|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.map.merge.LatestUpdateMapMergePolicy
public class LatestUpdateMapMergePolicy
LatestUpdateMapMergePolicy causes the merging entry to be merged from source to destination map if source entry has updated more recently than the destination entry. This policy can only be used of the clocks of the machines are in sync.
Constructor Summary | |
---|---|
LatestUpdateMapMergePolicy()
|
Method Summary | |
---|---|
Object |
merge(String mapName,
EntryView mergingEntry,
EntryView existingEntry)
Returns the value of the entry after the merge of entries with the same key. |
void |
readData(ObjectDataInput in)
Reads fields from the input stream |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LatestUpdateMapMergePolicy()
Method Detail |
---|
public Object merge(String mapName, EntryView mergingEntry, EntryView existingEntry)
MapMergePolicy
merge
in interface MapMergePolicy
mapName
- name of the mapmergingEntry
- entry merging into the destination clusterexistingEntry
- existing entry in the destination cluster
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- output
IOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- input
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |