public class DiscardMergePolicy extends AbstractSplitBrainMergePolicy
| Constructor and Description |
|---|
DiscardMergePolicy() |
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Returns type identifier for this class.
|
<T> T |
merge(MergingValueHolder<T> mergingValue,
MergingValueHolder<T> existingValue)
Selects the value of either the merging or the existing
MergingValueHolder which should be merged. |
checkInstanceOf, getFactoryId, readData, writeDatapublic <T> T merge(MergingValueHolder<T> mergingValue, MergingValueHolder<T> existingValue)
SplitBrainMergePolicyMergingValueHolder which should be merged.
Note that the existing MergingValueHolder instance may be null
if no matching data could be found to the merging MergingValueHolder.
merge in interface SplitBrainMergePolicymerge in class AbstractSplitBrainMergePolicyT - the type of the valuemergingValue - MergingValueHolder instance that has the merging data of the smaller sub-clusterexistingValue - MergingValueHolder instance that has the existing data
or null if no matching data existspublic int getId()
IdentifiedDataSerializableCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.