Class MessageGroupHashBucket
java.lang.Object
org.apache.activemq.broker.region.group.MessageGroupHashBucket
- All Implemented Interfaces:
MessageGroupMap
Uses hash-code buckets to associate consumers with sets of message group IDs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MessageGroupSetcreateMessageGroupSet(int bucketNumber) protected MessageGroupSetcreateMessageGroupSet(int bucketNumber, MessageGroupSet parent) org.apache.activemq.command.ConsumerIdintprotected intgetBucketNumber(String groupId) getType()voidvoidremoveConsumer(org.apache.activemq.command.ConsumerId consumerId) org.apache.activemq.command.ConsumerIdremoveGroup(String groupId) voidsetDestination(Destination destination) toString()
-
Constructor Details
-
MessageGroupHashBucket
public MessageGroupHashBucket(int bucketCount, int cachedSize)
-
-
Method Details
-
put
- Specified by:
putin interfaceMessageGroupMap
-
get
- Specified by:
getin interfaceMessageGroupMap
-
removeGroup
- Specified by:
removeGroupin interfaceMessageGroupMap
-
removeConsumer
- Specified by:
removeConsumerin interfaceMessageGroupMap
-
removeAll
public void removeAll()- Specified by:
removeAllin interfaceMessageGroupMap
-
getGroups
- Specified by:
getGroupsin interfaceMessageGroupMap- Returns:
- a map of group names and associated consumer Id
-
getType
- Specified by:
getTypein interfaceMessageGroupMap
-
setDestination
- Specified by:
setDestinationin interfaceMessageGroupMap
-
getBucketCount
public int getBucketCount() -
toString
-
createMessageGroupSet
-
createMessageGroupSet
-
getBucketNumber
-