|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.hibernate.VersionAwareMapMergePolicy
public class VersionAwareMapMergePolicy
A merge policy implementation to handle split brain remerges based on the timestamps stored in the values.
| Constructor Summary | |
|---|---|
VersionAwareMapMergePolicy()
|
|
| 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 VersionAwareMapMergePolicy()
| Method Detail |
|---|
public Object merge(String mapName,
EntryView mergingEntry,
EntryView existingEntry)
MapMergePolicy
merge in interface MapMergePolicymapName - 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 DataSerializableout - output
IOException
public void readData(ObjectDataInput in)
throws IOException
DataSerializable
readData in interface DataSerializablein - input
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||