On 07/31/2012 09:32 AM, Zhemzhitsky Sergey wrote:
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?

If the capacity is zero there is no prefetch, and get() currently simply returns any prefetched messages (if they exist). On th eother hand, every fetch() call will pull off a message if there is no prefetch buffer to take one from.

Does that make sense?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to