com.hazelcast.merge
Class LatestUpdateMergePolicy
java.lang.Object
  
com.hazelcast.merge.LatestUpdateMergePolicy
- All Implemented Interfaces: 
 - MergePolicy
 
public class LatestUpdateMergePolicy
- extends Object
- implements MergePolicy
  
 
 
 
| 
Method Summary | 
 Object | 
merge(String mapName,
      MapEntry mergingEntry,
      MapEntry existingEntry)
 
          Returns the value of the entry after the merge
 of entries with the same key. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
NAME
public static final String NAME
- See Also:
 - Constant Field Values
 
LatestUpdateMergePolicy
public LatestUpdateMergePolicy()
merge
public Object merge(String mapName,
                    MapEntry mergingEntry,
                    MapEntry existingEntry)
- Description copied from interface: 
MergePolicy 
- Returns the value of the entry after the merge
 of entries with the same key. Returning value can be
 You should consider the case where existingEntry is null.
- Specified by:
 merge in interface MergePolicy
 
- Parameters:
 mapName - name of the mapmergingEntry - entry merging into the destination clusterexistingEntry - existing entry in the destination cluster
- Returns:
 - final value of the entry. If returns null then no change on the entry.
 
 
 
Copyright © 2008-2012 Hazelcast, Inc. All Rights Reserved.