Ignore what I wrote above.  I should just shut up and drink my tea when I haven't 
taken a good look at the code....

Every time a message is added, the receiver is removed, and when the receiver is done 
processing it's added back.  For hashtables, objects are returned by an iterator in 
the order of (Object.hashcode % bucket).

As it doesn't seem like constant-time access is very much needed, I would recommend 
changing to a List.  However, I would probably use a LinkedList over an ArrayList, 
because items are removed from the head and added to the tail.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3833854#3833854

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3833854


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to