-
1. Re: Queue message count
ovidiu.feodorov Jan 29, 2006 2:43 PM (in response to timfox)The fist goal of the "queue message count" check in was to make sure that we have in place a management mechanism that goes from the facada all the way to the core and back.
The implementation is less important at this stage, but as you say, I see no reason to use a bad implementation when we can use a better one.
Alex, this is yours ... -
2. Re: Queue message count
timfox Jan 29, 2006 3:33 PM (in response to timfox)Right
The fix to this is actually a no-brainer - if there is any doubt I will be more than happy to point in the right direction. -
3. Re: Queue message count
alexfu.novell Jan 31, 2006 12:43 PM (in response to timfox)Thanks for the suggestion. I'm testing it and will check in afterward.
-
4. Re: Queue message count
timfox Feb 1, 2006 3:58 AM (in response to timfox)Alex - looks much better :)
A couple of points:
1) Perhaps mesageCount is a better name than messageAmount?
2) The number of messages in the queue is the sum of the number of undelivered messages plus the number of messages being delivered.
i.e.public int messageAmount() { return messageRefs.size() + deliveries.size(); }
-
5. Re: Queue message count
alexfu.novell Feb 1, 2006 11:51 AM (in response to timfox)You are right. Done. Thanks.