EmbeddedCacheManager manager = new DefaultCacheManager("example-config.xml"); Cache cache = manager.getCache("testCache"); ConflictManager crm = ConflictManagerFactory.get(cache.getAdvancedCache()); // Get All Versions of Key Map> versions = crm.getAllVersions(1); // Process conflicts stream and perform some operation on the cache Stream>> stream = crm.getConflicts(); stream.forEach(map -> { CacheEntry entry = map.values().iterator().next(); Object conflictKey = entry.getKey(); cache.remove(conflictKey); }); // Detect and then resolve conflicts using the configured EntryMergePolicy crm.resolveConflicts(); // Detect and then resolve conflicts using the passed EntryMergePolicy instance crm.resolveConflicts((preferredEntry, otherEntries) -> preferredEntry);