@@ -343,6 +343,28 @@ Exchange.DeclareOk exchangeDeclare(String exchange,
343343 boolean internal ,
344344 Map <String , Object > arguments ) throws IOException ;
345345
346+ /**
347+ * Like {@link Channel#exchangeDeclare(String, String, boolean, boolean, java.util.Map)} but
348+ * sets nowait parameter to true and returns nothing (as there will be no response from
349+ * the server).
350+ *
351+ * @param exchange the name of the exchange
352+ * @param type the exchange type
353+ * @param durable true if we are declaring a durable exchange (the exchange will survive a server restart)
354+ * @param autoDelete true if the server should delete the exchange when it is no longer in use
355+ * @param internal true if the exchange is internal, i.e. can't be directly
356+ * published to by a client.
357+ * @param arguments other properties (construction arguments) for the exchange
358+ * @return a declaration-confirm method to indicate the exchange was successfully declared
359+ * @throws java.io.IOException if an error is encountered
360+ */
361+ void exchangeDeclareNoWait (String exchange ,
362+ String type ,
363+ boolean durable ,
364+ boolean autoDelete ,
365+ boolean internal ,
366+ Map <String , Object > arguments ) throws IOException ;
367+
346368 /**
347369 * Declare an exchange passively; that is, check if the named exchange exists.
348370 * @param name check the existence of an exchange named this
@@ -361,6 +383,18 @@ Exchange.DeclareOk exchangeDeclare(String exchange,
361383 */
362384 Exchange .DeleteOk exchangeDelete (String exchange , boolean ifUnused ) throws IOException ;
363385
386+ /**
387+ * Like {@link Channel#exchangeDelete(String, boolean)} but sets nowait parameter to true
388+ * and returns void (as there will be no response from the server).
389+ * @see com.rabbitmq.client.AMQP.Exchange.Delete
390+ * @see com.rabbitmq.client.AMQP.Exchange.DeleteOk
391+ * @param exchange the name of the exchange
392+ * @param ifUnused true to indicate that the exchange is only to be deleted if it is unused
393+ * @throws java.io.IOException if an error is encountered
394+ */
395+ void exchangeDeleteNoWait (String exchange , boolean ifUnused ) throws IOException ;
396+
397+
364398 /**
365399 * Delete an exchange, without regard for whether it is in use or not
366400 * @see com.rabbitmq.client.AMQP.Exchange.Delete
@@ -396,6 +430,17 @@ Exchange.DeclareOk exchangeDeclare(String exchange,
396430 */
397431 Exchange .BindOk exchangeBind (String destination , String source , String routingKey , Map <String , Object > arguments ) throws IOException ;
398432
433+ /**
434+ * Like {@link Channel#exchangeBind(String, String, String, java.util.Map)} but sets nowait parameter
435+ * to true and returns void (as there will be no response from the server).
436+ * @param destination the name of the exchange to which messages flow across the binding
437+ * @param source the name of the exchange from which messages flow across the binding
438+ * @param routingKey the routine key to use for the binding
439+ * @param arguments other properties (binding parameters)
440+ * @throws java.io.IOException if an error is encountered
441+ */
442+ void exchangeBindNoWait (String destination , String source , String routingKey , Map <String , Object > arguments ) throws IOException ;
443+
399444 /**
400445 * Unbind an exchange from an exchange, with no extra arguments.
401446 * @see com.rabbitmq.client.AMQP.Exchange.Bind
@@ -421,6 +466,17 @@ Exchange.DeclareOk exchangeDeclare(String exchange,
421466 */
422467 Exchange .UnbindOk exchangeUnbind (String destination , String source , String routingKey , Map <String , Object > arguments ) throws IOException ;
423468
469+ /**
470+ * Same as {@link Channel#exchangeUnbind(String, String, String, java.util.Map)} but sets no-wait parameter to true
471+ * and returns nothing (as there will be no response from the server).
472+ * @param destination the name of the exchange to which messages flow across the binding
473+ * @param source the name of the exchange from which messages flow across the binding
474+ * @param routingKey the routine key to use for the binding
475+ * @param arguments other properties (binding parameters)
476+ * @throws java.io.IOException if an error is encountered
477+ */
478+ void exchangeUnbindNoWait (String destination , String source , String routingKey , Map <String , Object > arguments ) throws IOException ;
479+
424480 /**
425481 * Actively declare a server-named exclusive, autodelete, non-durable queue.
426482 * The name of the new queue is held in the "queue" field of the {@link com.rabbitmq.client.AMQP.Queue.DeclareOk} result.
@@ -446,6 +502,19 @@ Exchange.DeclareOk exchangeDeclare(String exchange,
446502 Queue .DeclareOk queueDeclare (String queue , boolean durable , boolean exclusive , boolean autoDelete ,
447503 Map <String , Object > arguments ) throws IOException ;
448504
505+ /**
506+ * Like {@link Channel#queueDeclare(String, boolean, boolean, boolean, java.util.Map)} but sets nowait
507+ * flag to true and returns no result (as there will be no response from the server).
508+ * @param queue the name of the queue
509+ * @param durable true if we are declaring a durable queue (the queue will survive a server restart)
510+ * @param exclusive true if we are declaring an exclusive queue (restricted to this connection)
511+ * @param autoDelete true if we are declaring an autodelete queue (server will delete it when no longer in use)
512+ * @param arguments other properties (construction arguments) for the queue
513+ * @throws java.io.IOException if an error is encountered
514+ */
515+ void queueDeclareNoWait (String queue , boolean durable , boolean exclusive , boolean autoDelete ,
516+ Map <String , Object > arguments ) throws IOException ;
517+
449518 /**
450519 * Declare a queue passively; i.e., check if it exists. In AMQP
451520 * 0-9-1, all arguments aside from nowait are ignored; and sending
@@ -482,6 +551,18 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
482551 */
483552 Queue .DeleteOk queueDelete (String queue , boolean ifUnused , boolean ifEmpty ) throws IOException ;
484553
554+ /**
555+ * Like {@link Channel#queueDelete(String, boolean, boolean)} but sets nowait parameter
556+ * to true and returns nothing (as there will be no response from the server).
557+ * @see com.rabbitmq.client.AMQP.Queue.Delete
558+ * @see com.rabbitmq.client.AMQP.Queue.DeleteOk
559+ * @param queue the name of the queue
560+ * @param ifUnused true if the queue should be deleted only if not in use
561+ * @param ifEmpty true if the queue should be deleted only if empty
562+ * @throws java.io.IOException if an error is encountered
563+ */
564+ void queueDeleteNoWait (String queue , boolean ifUnused , boolean ifEmpty ) throws IOException ;
565+
485566 /**
486567 * Bind a queue to an exchange, with no extra arguments.
487568 * @see com.rabbitmq.client.AMQP.Queue.Bind
@@ -507,6 +588,18 @@ Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, b
507588 */
508589 Queue .BindOk queueBind (String queue , String exchange , String routingKey , Map <String , Object > arguments ) throws IOException ;
509590
591+ /**
592+ * Same as {@link Channel#queueDeclare(String, boolean, boolean, boolean, java.util.Map)} but sets nowait
593+ * parameter to true and returns void (as there will be no response
594+ * from the server).
595+ * @param queue the name of the queue
596+ * @param exchange the name of the exchange
597+ * @param routingKey the routine key to use for the binding
598+ * @param arguments other properties (binding parameters)
599+ * @throws java.io.IOException if an error is encountered
600+ */
601+ void queueBindNoWait (String queue , String exchange , String routingKey , Map <String , Object > arguments ) throws IOException ;
602+
510603 /**
511604 * Unbinds a queue from an exchange, with no extra arguments.
512605 * @see com.rabbitmq.client.AMQP.Queue.Unbind
0 commit comments