qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Trieloff <cctriel...@redhat.com>
Subject Re: Applying Queue Sizing Constraints from dotnet client
Date Tue, 01 Dec 2009 17:29:46 GMT

yes, I would assume you would want max count larger than 1 :-)

Carl.

Ignacio Ybarra wrote:
> It should be something like this:
> session.queueDeclare(qname, null, new Dictionary<string, object>() { { "qpid.max_count",
1 }, { "qpid.policy_type", "ring" } }, options);
>
>
>   
>> Date: Tue, 1 Dec 2009 11:18:09 -0500
>> From: cctrieloff@redhat.com
>> To: users@qpid.apache.org
>> Subject: Re: Applying Queue Sizing Constraints from dotnet client
>>
>> Virgoss wrote:
>>     
>>> I've found how to apply queue sizing constraints from c++ client 
>>> http://qpid.apache.org/cheat-sheet-for-configuring-queue-options.html here .
>>> It looks like:
>>>
>>> #include "qpid/client/QueueOptions.h"
>>>
>>> QueueOptions qo;
>>> qo.setSizePolicy(RING,0,1000);
>>> session.queueDeclare(arg::queue=queue, arg::arguments=qo);
>>>
>>> How to do the same from the .NET client?
>>>
>>>   
>>>       
>> All this helper class does is set options in the fieldtable. you can set 
>> these directly from just about any client
>> on the queue declare. If you look in the header you can pick out the 
>> strings, or they are also on the wiki etc.
>>
>> Carl.
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>     
>  		 	   		  
>   


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message