public interface CacheMergePolicy extends Serializable
CacheEntryView instances wrap the key and value as their original types
with conversion to object from their storage types. If you don't need the original types
of key and value, you should use
StorageTypeAwareCacheMergePolicy which is
a sub-type of this interface.
Object merge(String cacheName, CacheEntryView mergingEntry, CacheEntryView existingEntry)
Note that the
existingEntry may be
null if there
is no entry with the same key in the destination cache.
This happens, when the entry for that key was
cacheName- name of the cache
CacheEntryViewinstance that has the cache entry to be merged
CacheEntryViewinstance that has the existing cache entry or
nullif there is no existing cache entry
nullif the entry should be removed
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.