[bunny-amqp-devel] dectecting a client timeout with bunny

13 views
Skip to first unread message

vishnu

unread,
Jan 20, 2010, 11:04:18 AM1/20/10
to bunny-am...@rubyforge.org
Hi
   Im attempting to use bunny to do the "rpc" mode communication where I listen on a temporary queue for 1 message with a timeout. Is there a way for me to detect after this step if the queue recieved a message or timedout (other than by maintaining state myself?). It would be possible for me to do this ofcourse, but I was wondering if the queue itself exposes this information in some way?

thanks
Vishnu

celldee

unread,
Feb 3, 2010, 1:54:57 PM2/3/10
to bunny-am...@rubyforge.org
Hi Vishnu,

You can get a message count from the queue with the
Queue#message_count method. Is that what you mean?

Regards,

Chris
_______________________________________________
bunny-amqp-devel mailing list
bunny-am...@rubyforge.org
http://rubyforge.org/mailman/listinfo/bunny-amqp-devel

Reply all
Reply to author
Forward
0 new messages