Skip to content

Commit 1f88aee

Browse files
author
Simon MacMullen
committed
Merge bug 23170 into default (remove queuePurge(String, boolean))
2 parents 3716326 + 7dbb1a6 commit 1f88aee

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

src/com/rabbitmq/client/Channel.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -412,26 +412,15 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
412412
*/
413413
Queue.UnbindOk queueUnbind(String queue, String exchange, String routingKey, Map<String, Object> arguments) throws IOException;
414414

415-
/**
416-
* Purges the contents of the given queue and awaits a completion.
417-
* @see com.rabbitmq.client.AMQP.Queue.Purge
418-
* @see com.rabbitmq.client.AMQP.Queue.PurgeOk
419-
* @param queue the name of the queue
420-
* @return a purge-confirm method if the purge was executed succesfully
421-
* @throws java.io.IOException if an error is encountered
422-
*/
423-
Queue.PurgeOk queuePurge(String queue) throws IOException;
424-
425415
/**
426416
* Purges the contents of the given queue.
427417
* @see com.rabbitmq.client.AMQP.Queue.Purge
428418
* @see com.rabbitmq.client.AMQP.Queue.PurgeOk
429419
* @param queue the name of the queue
430-
* @param nowait whether to await completion of the purge
431420
* @return a purge-confirm method if the purge was executed succesfully
432421
* @throws java.io.IOException if an error is encountered
433422
*/
434-
Queue.PurgeOk queuePurge(String queue, boolean nowait) throws IOException;
423+
Queue.PurgeOk queuePurge(String queue) throws IOException;
435424

436425
/**
437426
* Retrieve a message from a queue using {@link com.rabbitmq.client.AMQP.Basic.Get}

src/com/rabbitmq/client/impl/ChannelN.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -596,16 +596,9 @@ public Queue.UnbindOk queueUnbind(String queue, String exchange, String routingK
596596
/** Public API - {@inheritDoc} */
597597
public Queue.PurgeOk queuePurge(String queue)
598598
throws IOException
599-
{
600-
return queuePurge(queue, false);
601-
}
602-
603-
/** Public API - {@inheritDoc} */
604-
public Queue.PurgeOk queuePurge(String queue, boolean nowait)
605-
throws IOException
606599
{
607600
return (Queue.PurgeOk)
608-
exnWrappingRpc(new Queue.Purge(TICKET, queue, nowait)).getMethod();
601+
exnWrappingRpc(new Queue.Purge(TICKET, queue, false)).getMethod();
609602
}
610603

611604
/** Public API - {@inheritDoc} */

0 commit comments

Comments
 (0)