[id="merging-partitions-manually_{context}"]
= Manually merging partitions in embedded caches

Detect and resolve conflicting entries to manually merge embedded caches after network partitions occur.

.Procedure

* Retrieve the `ConflictManager` from the `EmbeddedCacheManager` to detect and resolve conflicting entries in a cache, as in the following example:
+
[source,java,options="nowrap",subs=attributes+]
----
include::code_examples/EmbeddedConflictManager.java[]
----

[NOTE]
====
Although the `ConflictManager::getConflicts` stream is processed per entry, the underlying spliterator lazily loads cache entries on a per segment basis.
====
