public class PassThroughMergePolicy extends Object implements MapMergePolicy
| Constructor and Description |
|---|
PassThroughMergePolicy() |
| Modifier and Type | Method and Description |
|---|---|
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(com.hazelcast.nio.ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(com.hazelcast.nio.ObjectDataOutput out)
Writes object fields to output stream
|
public Object merge(String mapName, EntryView mergingEntry, EntryView existingEntry)
MapMergePolicymerge in interface MapMergePolicymapName - name of the mapmergingEntry - entry merging into the destination clusterexistingEntry - existing entry in the destination clusterpublic void writeData(com.hazelcast.nio.ObjectDataOutput out)
throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(com.hazelcast.nio.ObjectDataInput in)
throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionCopyright © 2014 Hazelcast, Inc.. All Rights Reserved.