Package pulp :: 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, name=None) source code
str
address(self)
Get the topic formal AMQP address which contains properties used to create the topic.
source code
str
queuedAddress(self)
Get the topic durable AMQP address which contains properties used to create the topic.
source code
 
__str__(self) source code
    Inherited from Destination
 
__repr__(self) source code
 
delete(self, session)
Delete the destination.
source code
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, name=None)
(Constructor)

source code 
Parameters:
  • topic (str) - The name of the topic.
  • subject (str) - The subject.
  • name (str) - The (optional) subscription name. Used for durable subscriptions.

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

queuedAddress(self)

source code 

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

Returns: str
The topic address.

Instance Variable Details [hide private]

name

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