org.apache.activemq.broker.region.group
Class MessageGroupHashBucket
java.lang.Object
org.apache.activemq.broker.region.group.MessageGroupHashBucket
- All Implemented Interfaces:
- MessageGroupMap
public class MessageGroupHashBucket
- extends Object
- implements MessageGroupMap
Uses hash-code buckets to associate consumers with sets of message group IDs.
- Version:
- $Revision: 564679 $
MessageGroupHashBucket
public MessageGroupHashBucket(int bucketCount)
put
public void put(String groupId,
ConsumerId consumerId)
- Specified by:
put
in interface MessageGroupMap
get
public ConsumerId get(String groupId)
- Specified by:
get
in interface MessageGroupMap
removeGroup
public ConsumerId removeGroup(String groupId)
- Specified by:
removeGroup
in interface MessageGroupMap
removeConsumer
public MessageGroupSet removeConsumer(ConsumerId consumerId)
- Specified by:
removeConsumer
in interface MessageGroupMap
toString
public String toString()
- Overrides:
toString
in class Object
createMessageGroupSet
protected MessageGroupSet createMessageGroupSet(int bucketNumber,
MessageGroupSet parent)
createMessageGroupSet
protected MessageGroupSet createMessageGroupSet(int bucketNumber)
getBucketNumber
protected int getBucketNumber(String groupId)
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.