V - the type of the merged valueT - the type of the merging valuepublic class HigherHitsMergePolicy<V,T extends MergingValue<V> & MergingHits> extends com.hazelcast.spi.impl.merge.AbstractSplitBrainMergePolicy<V,T,Object>
| Constructor and Description | 
|---|
| HigherHitsMergePolicy() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getClassId()Returns type identifier for this class. | 
| Object | merge(T mergingValue,
     T existingValue)Selects the value of either the merging or the
 existing  MergingValuewhich should be merged. | 
public Object merge(T mergingValue, T existingValue)
SplitBrainMergePolicyMergingValue which should be merged.
 
 Note that the existing MergingValue instance may be null
 if no matching data could be found to the merging MergingValue.
mergingValue - MergingValue instance that has the
                      merging data of the smaller sub-clusterexistingValue - MergingValue instance that has the existing
                      data or null if no matching data existspublic int getClassId()
IdentifiedDataSerializableCopyright © 2020 Hazelcast, Inc.. All rights reserved.