Class BucketMessageGroups<C>
java.lang.Object
org.apache.activemq.artemis.core.server.impl.BucketMessageGroups<C>
- All Implemented Interfaces:
MessageGroups<C>
BucketMessageGroups, stores values against a bucket, where the bucket used is based on the provided key objects
hash.
As such where keys compute to the same bucket they will act on that stored value, not the unique specific key.
The number of buckets is provided at construction.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(SimpleString key) voidput(SimpleString key, C consumer) remove(SimpleString key) voidbooleanintsize()toMap()
-
Constructor Details
-
BucketMessageGroups
public BucketMessageGroups(int bucketCount)
-
-
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>
-