Queue message count updated asynchronously?
1 posts in topic
Flat View  Flat View

Posted By:   Andreas_Hubold
Posted On:   Thursday, March 18, 2004 02:35 AM

I'm using the CLI Admin API to get the number of messages in a queue. I wrote a test programm which sends 1000 messages to that queue and reads the number of messages immediately after all messages have been sent. The returned count was 625. After a delay of 1 second the correct count of 1000 was returned.

Is there another possibility to get the message count or can you tell me how long I have to wait to get a correct result? (During the wait time, no messages are sent to or removed from the queue).


Re: Queue message count updated asynchronously?

Posted By:   Andreas_Mueller  
Posted On:   Thursday, March 18, 2004 07:36 AM

The time is specified in the attribute "collect-interval" of the Queue Manager Swiftlet. The default is 1000 ms (1 sec).

The collect timer is started when the first admin application (Explorer, CLI, CLI Admin API) connects and updates the message count attribute in the management tree in the specified interval. When the last admin app disconnects, collection is stopped.
About | Sitemap | Contact