Package gofer :: Package messaging :: Class Queue
[hide private]
[frames] | no frames]

Class Queue

source code

Destination --+
              |
             Queue

Represents and AMQP queue.

Instance Methods [hide private]
 
__init__(self, name, durable=True, bindings=[]) source code
str
address(self)
Get the queue formal AMQP address which contains properties used to create the queue.
source code
str
tmpAddress(self)
Get the queue AMQP address which contains properties used to create a temporary queue.
source code
XBinding
xbinding(self)
Get an xbinding for the queue.
source code
 
__str__(self) source code

Inherited from Destination: __repr__, delete

Instance Variables [hide private]
str durable
The durable flag.
str name
The name of the queue.
Method Details [hide private]

__init__(self, name, durable=True, bindings=[])
(Constructor)

source code 
Parameters:
  • name (str) - The name of the queue.
  • durable (str) - The durable flag.
  • bindings (Destination) - An optional list of bindings used to bind queues to other exchanges.

address(self)

source code 

Get the queue formal AMQP address which contains properties used to create the queue.

Returns: str
The queue address.
Overrides: Destination.address

tmpAddress(self)

source code 

Get the queue AMQP address which contains properties used to create a temporary queue.

Returns: str
The queue address.

xbinding(self)

source code 

Get an xbinding for the queue.

Returns: XBinding
An xbinding.