public class HigherHitsMergePolicy extends AbstractSplitBrainMergePolicy
| Constructor and Description |
|---|
HigherHitsMergePolicy() |
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Returns type identifier for this class.
|
<V> V |
merge(MergingValue<V> mergingValue,
MergingValue<V> existingValue)
Selects the value of either the merging or the existing
MergingValue which should be merged. |
checkInstanceOf, getFactoryId, readData, writeDatapublic <V> V merge(MergingValue<V> mergingValue, MergingValue<V> 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.
merge in interface SplitBrainMergePolicymerge in class AbstractSplitBrainMergePolicyV - the type of the valuemergingValue - 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 getId()
IdentifiedDataSerializableCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.