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>
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 -
Method Summary
Modifier and TypeMethodDescriptionget(SimpleString key) voidput(SimpleString key, C consumer) remove(SimpleString key) voidbooleanintsize()toMap()
-
Constructor Details
-
SimpleMessageGroups
public SimpleMessageGroups()
-
-
Method Details
-
put
- Specified by:
putin interfaceMessageGroups<C>
-
get
- Specified by:
getin interfaceMessageGroups<C>
-
remove
- Specified by:
removein interfaceMessageGroups<C>
-
removeIf
- Specified by:
removeIfin interfaceMessageGroups<C>
-
removeAll
public void removeAll()- Specified by:
removeAllin interfaceMessageGroups<C>
-
size
public int size()- Specified by:
sizein interfaceMessageGroups<C>
-
toMap
- Specified by:
toMapin interfaceMessageGroups<C>
-