com.hazelcast.merge
Interface MergePolicy

All Known Implementing Classes:
AddNewEntryMergePolicy, HigherHitsMergePolicy, LatestUpdateMergePolicy, PassThroughMergePolicy

public interface MergePolicy


Field Summary
static Object REMOVE_EXISTING
           
 
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.
 

Field Detail

REMOVE_EXISTING

static final Object REMOVE_EXISTING
Method Detail

merge

Object merge(String mapName,
             MapEntry mergingEntry,
             MapEntry existingEntry)
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.

Parameters:
mapName - name of the map
mergingEntry - entry merging into the destination cluster
existingEntry - existing entry in the destination cluster
Returns:
final value of the entry. If returns null then no change on the entry.


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.