Thread safe map intended to be used for registries. Provides an atomic operation
used to remove a set of previously added values before adding a collection of new ones. Read operations are blocked
until it completes guaranteeing proper visibility.
It is common for entities in registries to also hold their identifier. The method
overridden to get the identifier from the value. This removes the need to package a set of entities that should be
added in a Map before calling
This is a port and simplified version of
, which was written prior to the
introduction of the
interface. It should not be used directly.