V
- the type of the merged valueT
- the type of the merging value@Beta public class DiscardMergePolicy<V,T extends MergingValue<V>> extends AbstractSplitBrainMergePolicy<V,T>
Constructor and Description |
---|
DiscardMergePolicy() |
Modifier and Type | Method and Description |
---|---|
int |
getId()
Returns type identifier for this class.
|
V |
merge(T mergingValue,
T existingValue)
Selects the value of either the merging or the existing
MergingValue which should be merged. |
getFactoryId, readData, writeData
public V merge(T mergingValue, T existingValue)
SplitBrainMergePolicy
MergingValue
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 getId()
IdentifiedDataSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.