Class SimpleMessageGroups<C>
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.impl.SimpleMessageGroups<C>
-
- Type Parameters:
C- the value type.
- All Implemented Interfaces:
MessageGroups<C>
public class SimpleMessageGroups<C> extends Object
Implementation of MessageGroups that simply uses a HashMap, this is the existing and default behaviour of message groups in artemis. Effectively every Group Id is mapped raw, it also is unbounded.
-
-
Constructor Summary
Constructors Constructor Description SimpleMessageGroups()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cget(SimpleString key)voidput(SimpleString key, C consumer)Cremove(SimpleString key)voidremoveAll()booleanremoveIf(Predicate<? super C> filter)intsize()Map<SimpleString,C>toMap()
-
-
-
Method Detail
-
put
public void put(SimpleString key, C consumer)
- Specified by:
putin interfaceMessageGroups<C>
-
get
public C get(SimpleString key)
- Specified by:
getin interfaceMessageGroups<C>
-
remove
public C remove(SimpleString key)
- Specified by:
removein interfaceMessageGroups<C>
-
removeIf
public boolean removeIf(Predicate<? super C> filter)
- Specified by:
removeIfin interfaceMessageGroups<C>
-
removeAll
public void removeAll()
- Specified by:
removeAllin interfaceMessageGroups<C>
-
size
public int size()
- Specified by:
sizein interfaceMessageGroups<C>
-
toMap
public Map<SimpleString,C> toMap()
- Specified by:
toMapin interfaceMessageGroups<C>
-
-