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

Class Topic

source code

Destination --+
              |
             Topic

Represents and AMQP topic.

Instance Methods [hide private]
 
__init__(self, topic, subject=None) source code
str
address(self)
Get the topic formal AMQP address which contains properties used to create the topic.
source code
XBinding
binding(self)
Get an binding for the queue.
source code
 
__str__(self) source code

Inherited from Destination: __repr__, delete

Instance Variables [hide private]
str name
The (optional) subscription name.
str subject
The subject.
str topic
The name of the topic.
Method Details [hide private]

__init__(self, topic, subject=None)
(Constructor)

source code 
Parameters:
  • topic (str) - The name of the topic.
  • subject (str) - The subject.

address(self)

source code 

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

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

binding(self)

source code 

Get an binding for the queue.

Returns: XBinding
A binding.

Instance Variable Details [hide private]

name

The (optional) subscription name. Used for durable subscriptions.
Type:
str