K - the type of the record keyV - the type of the record valueT - the type of the merged itempublic interface SplitBrainAwareDataContainer<K,V,T>
SplitBrainHandlerService.| Modifier and Type | Method and Description |
|---|---|
T |
merge(SplitBrainMergeEntryView<K,V> mergingEntry,
SplitBrainMergePolicy mergePolicy)
Merges the given
SplitBrainMergeEntryView with an existing entry via the supplied SplitBrainMergePolicy. |
T merge(SplitBrainMergeEntryView<K,V> mergingEntry, SplitBrainMergePolicy mergePolicy)
SplitBrainMergeEntryView with an existing entry via the supplied SplitBrainMergePolicy.
The existing entry has to be retrieved by the implementing data container, via the key or value of the merging entry.
Both entries are passed to SplitBrainMergePolicy.merge(SplitBrainMergeEntryView, SplitBrainMergeEntryView),
which decides if one of the entries should be merged.
The return type of this methods depends on the contract between the calling merge operation and the data container, e.g.
null to signal that nothing has been mergedboolean to signal if the mergingEntry was merged or notmergingEntry - the SplitBrainMergeEntryView instance that wraps key/value for merging and existing entrymergePolicy - the SplitBrainMergePolicy instance for handling merge policynullCopyright © 2018. All Rights Reserved.