diff --git a/coolamqp/objects.py b/coolamqp/objects.py index 24661fe8499d640724bc48e030c7c65ba940b527..be52e202956c3a6f0679c746630a3433b800f3b4 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