Class NoOpMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
org.apache.activemq.artemis.utils.collections.NoOpMap<K,V>
Type Parameters:
K - the key type.
V - the value type.
All Implemented Interfaces:
Map<K,V>

public class NoOpMap<K,V> extends AbstractMap<K,V>
This class implements a Map, but actually doesnt store anything, it is similar in idea to an EmptyMap, but where mutation methods simply do a no op rather than UnsupportedOperationException as with EmptyMap.

This is used in QueueImpl when message groups is disabled.