public class MessageGroupHashBucket extends Object implements MessageGroupMap
Constructor and Description |
---|
MessageGroupHashBucket(int bucketCount,
int cachedSize) |
Modifier and Type | Method and Description |
---|---|
protected MessageGroupSet |
createMessageGroupSet(int bucketNumber) |
protected MessageGroupSet |
createMessageGroupSet(int bucketNumber,
MessageGroupSet parent) |
org.apache.activemq.command.ConsumerId |
get(String groupId) |
int |
getBucketCount() |
protected int |
getBucketNumber(String groupId) |
Map<String,String> |
getGroups() |
String |
getType() |
void |
put(String groupId,
org.apache.activemq.command.ConsumerId consumerId) |
void |
removeAll() |
MessageGroupSet |
removeConsumer(org.apache.activemq.command.ConsumerId consumerId) |
org.apache.activemq.command.ConsumerId |
removeGroup(String groupId) |
void |
setDestination(Destination destination) |
String |
toString() |
public MessageGroupHashBucket(int bucketCount, int cachedSize)
public void put(String groupId, org.apache.activemq.command.ConsumerId consumerId)
put
in interface MessageGroupMap
public org.apache.activemq.command.ConsumerId get(String groupId)
get
in interface MessageGroupMap
public org.apache.activemq.command.ConsumerId removeGroup(String groupId)
removeGroup
in interface MessageGroupMap
public MessageGroupSet removeConsumer(org.apache.activemq.command.ConsumerId consumerId)
removeConsumer
in interface MessageGroupMap
public void removeAll()
removeAll
in interface MessageGroupMap
public Map<String,String> getGroups()
getGroups
in interface MessageGroupMap
public String getType()
getType
in interface MessageGroupMap
public void setDestination(Destination destination)
setDestination
in interface MessageGroupMap
public int getBucketCount()
protected MessageGroupSet createMessageGroupSet(int bucketNumber, MessageGroupSet parent)
protected MessageGroupSet createMessageGroupSet(int bucketNumber)
protected int getBucketNumber(String groupId)
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.