qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: queue.purge in new messaging API
Date Mon, 23 Aug 2010 13:20:18 GMT
On 08/21/2010 07:01 PM, Daniel Lundin wrote:
> What would the equivalent of a queue.purge in AMQP 0.8/0.10 be using
> qpid.messaging?

There is no direct method to purge a queue in the messaging API. However 
you can use the management protocol to send a purge request to the 
broker (as a map message).

Attached are basic examples of this approach for python and c++ (purges 
1 message from my-queue, the details obviously can be changed).

View raw message