public class LatestAccessCacheMergePolicy extends Object implements StorageTypeAwareCacheMergePolicy
Note: This policy can only be used if the clocks of the nodes are in sync.
|Constructor and Description|
|Modifier and Type||Method and Description|
Selects one of the merging and existing cache entries to be merged.
public 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 © 2018 Hazelcast, Inc.. All Rights Reserved.