public interface CacheMergePolicy extends Serializable
Policy for merging cache entries.
CacheEntryView instances wraps the key and value as their original types
with convertion to object from their storage types. If user doesn't need to original types of key and value,
(s)he should use
StorageTypeAwareCacheMergePolicy which is sub-type of this interface.
Object merge(String cacheName, CacheEntryView mergingEntry, CacheEntryView existingEntry)
Selects one of the merging and existing cache entries to be merged.
Note that as mentioned also in arguments, the
CacheEntryView instance that represents existing cache entry
may be null if there is no existing entry for the specified key in the the
that represents merging cache entry.
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.