You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Oleksandr Rudyy <or...@gmail.com> on 2011/12/07 10:14:21 UTC
Re: Jave Client with C++ Broker - Messages in Queue-size?
Hi,
You can get number of messages on a queue by invoking
AMQSession#getQueueDepth(AMQDestination) like following
Session myJMSSession = ...
Desionation myJMSDestination = ..
long queueDepth =
((AMQSession)myJMSSession).getQueueDepth(((AMQDestination)myJMSDestination));
Pls, be aware that this method is internal implementation specific and
can be changed or removed in following versions of qpid JMS client.
Kind Regards,
Alex
On 2 December 2011 16:42, dmounessa <dm...@yahoo.com> wrote:
> Is there a way to get Queue size from the JAVA Client?
>
> I want to get notified when I can start sending messages on the queue?
>
> Thanks
>
> --
> View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/Jave-Client-with-C-Broker-Messages-in-Queue-size-tp7055301p7055301.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org