Class CopyOnWriteMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
io.micronaut.core.util.CopyOnWriteMap<K,V>
Type Parameters:
K - The key type
V - The value type
All Implemented Interfaces:
ConcurrentMap<K,V>, Map<K,V>

@Internal public final class CopyOnWriteMap<K,V> extends AbstractMap<K,V> implements ConcurrentMap<K,V>
Thread-safe map that is optimized for reads. Uses a normal HashMap that is copied on update operations.