A ReplicatedMap is a map like data structure with non-strong consistency (so-called eventually consistent) and values are locally stored on every node of the cluster. When accessing values, due to the eventually consistency, it is possible to read staled data since replication is not handled in a synchronous way.
Whenever a value is written asynchronously the new value will be internally distributed to all existing cluster members and eventually every node will have the new value and the cluster again is in a consistent state.
When a new node joins the cluster the new node initially will request existing values from older nodes and replicate those locally.
@param < K> the type of keys maintained by this map @param < V> the type of mapped values @since 3.2
|
|