[ 
https://issues.apache.org/jira/browse/QPID-2390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rob Godfrey resolved QPID-2390.
-------------------------------

    Resolution: Won't Fix

We've not had any need for this feature up till now, and with AMQP 1-0 removing 
"queue purging" from the underlying protocol I don't think it would be wise to 
introduce this to the API.
                
> Expose Queue Purge functionalitiy for test clean up.
> ----------------------------------------------------
>
>                 Key: QPID-2390
>                 URL: https://issues.apache.org/jira/browse/QPID-2390
>             Project: Qpid
>          Issue Type: New Feature
>          Components: Java Client, Java Performance Tests, Java Tests
>    Affects Versions: 0.6
>            Reporter: Martin Ritchie
>            Priority: Minor
>         Attachments: QPID-2369-clear-queue.diff
>
>
> To aid in cleaning up of the tests in the event of failure exposing the queue 
> purge method on AMQSession, as we do with queue delete, will give us a clean 
> and easy way to empty a given queue. 
> This approach is more favourable than simply receiving the messages from the 
> queue for two reasons.
> 1) The test may be faiiing  because it cannot receive the messages fast 
> enough. This may prevent a successful clean by simply calling receive till 
> null.
> 2) We can guarrantee that the queue will be emptied when the purge returns.
> By exposing it we are adding a new method to maintain, though this is an AMQP 
> feature and so arguably we should already be exposing it. System testing for 
> this new feature would be required.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to