From 26f5c4f401e227a3c0ec75980905c6b58b3708fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@ericsson.com> Date: Sun, 1 Sep 2024 15:30:46 +0200 Subject: [PATCH] docs fixed --- coolamqp/objects.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/coolamqp/objects.py b/coolamqp/objects.py index 24661fe..be52e20 100644 --- a/coolamqp/objects.py +++ b/coolamqp/objects.py @@ -214,6 +214,19 @@ Exchange.direct = Exchange() class Queue(object): """ This object represents a Queue that applications consume from or publish to. + Create a queue definition. + + :param name: name of the queue. + Take special care if this is empty. If empty, this will be filled-in by the broker + upon declaration. If a disconnect happens, and connection to other node is + reestablished, this name will CHANGE AGAIN, and be reflected in this object. + This change will be done before CoolAMQP signals reconnection. + :param durable: Is the queue durable? + :param exchange: Exchange for this queue to bind to. None for no binding. + :param exclusive: Is this queue exclusive? + :param auto_delete: Is this queue auto_delete ? + + .. warning:: If a queue name is not given, and it will be allocated by the server, it will be a memoryview! """ __slots__ = ('name', 'durable', 'exchange', 'auto_delete', 'exclusive', 'anonymous', 'consumer_tag') @@ -224,19 +237,6 @@ class Queue(object): exclusive=False, # type: bool auto_delete=False # type: bool ): - """ - Create a queue definition. - - :param name: name of the queue. - Take special care if this is empty. If empty, this will be filled-in by the broker - upon declaration. If a disconnect happens, and connection to other node is - reestablished, this name will CHANGE AGAIN, and be reflected in this object. - This change will be done before CoolAMQP signals reconnection. - :param durable: Is the queue durable? - :param exchange: Exchange for this queue to bind to. None for no binding. - :param exclusive: Is this queue exclusive? - :param auto_delete: Is this queue auto_delete ? - """ self.name = tobytes(name) #: public, must be bytes # if name is '', this will be filled in with broker-generated name upon declaration self.durable = durable -- GitLab