public interface ReplicatedMapMergePolicy extends Serializable
Modifier and Type | Method and Description |
---|---|
Object |
merge(String mapName,
ReplicatedMapEntryView mergingEntry,
ReplicatedMapEntryView existingEntry)
Selects one of the merging and existing map entries to be merged.
|
Object merge(String mapName, ReplicatedMapEntryView mergingEntry, ReplicatedMapEntryView existingEntry)
Note that the existingEntry
may be null
if there
is no entry with the same key in the destination map.
This happens, when the entry for that key was
mapName
- name of the replicated mapmergingEntry
- ReplicatedMapEntryView
instance that has the map entry to be mergedexistingEntry
- ReplicatedMapEntryView
instance that has the existing map entry
or null
if there is no existing map entrynull
if the entry should be removedCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.