qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhemzhitsky Sergey <Sergey_Zhemzhit...@troika.ru>
Subject RE: What's the difference between Receiver::get and Receiver::fetch
Date Tue, 31 Jul 2012 08:32:53 GMT
Hi Gordon,

I have recently found that Receiver::get does not return anything if the receiver's capacity
is not specified (i.e. zero) and if the receiver's capacity is greater than 0, then Receiver::get
retrieves messages from the broker.
At the same time Receiver::fetch always retrieves messages from the broker even if the receiver's
capacity is not specified.

Is this an expected behavior? 

Best Regards,
Sergey


-----Original Message-----
From: Gordon Sim [mailto:gsim@redhat.com] 
Sent: Monday, July 30, 2012 3:59 PM
To: users@qpid.apache.org
Subject: Re: What's the difference between Receiver::get and Receiver::fetch

On 07/30/2012 12:52 PM, Zhemzhitsky Sergey wrote:
> So If I set the receiver's capacity to N, the call to the fetch() 
> method will retrieve no more than N messages and any subsequent call 
> to the fetch() will do the round trip to the server only if there are 
> no more messages in the local receiver's queue?

Correct.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail:
users-help@qpid.apache.org


_______________________________________________________

The information contained in this message may be privileged and conf idential and protected
from disclosure. If you are not the original intended recipient, you are hereby notified that
any review, retransmission, dissemination, or other use of, or taking of any action in reliance
upon, this information is prohibited. If you have received this communication in error, please
notify the sender immediately by replying to this message and delete it from your computer.
Thank you for your cooperation. Troika Dialog, Russia. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp
 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message