Package org.infinispan.conflict
Class MergePolicy.UnsupportedMergePolicy
java.lang.Object
org.infinispan.conflict.MergePolicy.UnsupportedMergePolicy
- All Implemented Interfaces:
- EntryMergePolicy
- Enclosing class:
- MergePolicy
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.infinispan.container.entries.CacheEntryThis method is called byConflictManager.resolveConflicts()for each conflict discovered to determine whichCacheEntryshould be utilised.
- 
Constructor Details- 
UnsupportedMergePolicypublic UnsupportedMergePolicy()
 
- 
- 
Method Details- 
mergepublic org.infinispan.container.entries.CacheEntry merge(org.infinispan.container.entries.CacheEntry preferredEntry, List otherEntries) Description copied from interface:EntryMergePolicyThis method is called byConflictManager.resolveConflicts()for each conflict discovered to determine whichCacheEntryshould be utilised. This merge policy is used when a user explicitly callsConflictManager.resolveConflicts()as well as when a partition merge occurs withPartitionHandling.ALLOW_READ_WRITESset. In the event of a partition merge, we define the preferred partition as the partition whom's coordinator is coordinating the current merge.- Specified by:
- mergein interface- EntryMergePolicy
- Parameters:
- preferredEntry- During a partition merge, the preferredEntry is the primary replica of a CacheEntry stored in the partition that contains the most nodes or if partitions are equal the one with the largest topologyId. In the event of overlapping partitions, i.e. a node A is present in the topology of both partitions {A}, {A,B,C}, we pick {A} as the preferred partition as it will have the higher topologId because the other partition's topology is behind. During a non-merge call to- ConflictManager.resolveConflicts(), the preferredEntry is simply the primary owner of an entry
- otherEntries- a- Listof all other- CacheEntryassociated with a given Key.
- Returns:
- the winning CacheEntryto be utilised across the cluster, or null if all entries for a key should be removed.
 
 
-