Class CopyOnUpdateOnceMap<K,V>

java.lang.Object
com.gigaspaces.internal.utils.collections.CopyOnUpdateOnceMap<K,V>
All Implemented Interfaces:
ConcurrentMap<K,V>, Map<K,V>

public class CopyOnUpdateOnceMap<K,V> extends Object implements ConcurrentMap<K,V>
Provides a ConcurrentMap implementation. This implementation is based on CopyOnUpdate for each modifying operation. However the internal map is not volatile, meaning a modification may not be visible to a following read, hence this map should be used when in such cases the upper layer would insert the same value under this key that the was originally inserted, such as one time cache initialization which always ends up with the same result.
Since:
9.5
Author:
eitany