added comment - I'd have thought a Map was better?

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@381612 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-02-28 09:49:25 +00:00
parent 895a15761f
commit 35e088856d
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ public class ActiveMQSessionExecutor implements Task {
} }
void dispatch(MessageDispatch message){ void dispatch(MessageDispatch message){
// TODO - we should use a Map for this indexed by consumerId
for (Iterator i = this.session.consumers.iterator(); i.hasNext();) { for (Iterator i = this.session.consumers.iterator(); i.hasNext();) {
ActiveMQMessageConsumer consumer = (ActiveMQMessageConsumer) i.next(); ActiveMQMessageConsumer consumer = (ActiveMQMessageConsumer) i.next();
ConsumerId consumerId = message.getConsumerId(); ConsumerId consumerId = message.getConsumerId();