Package netaddr :: Module core :: Class Publisher
[frames] | no frames]

Class Publisher

source code

object --+
         |
        Publisher
Known Subclasses:

A 'push' publisher that maintains a list of Subscriber objects notifying them of state changes when its subclasses encounter events of interest.

Instance Methods
 
__init__(self)
Constructor
source code
 
attach(self, subscriber)
Add a new subscriber
source code
 
detach(self, subscriber)
Remove an existing subscriber
source code
 
notify(self, data)
Send notification message to all registered subscribers
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

Constructor

Overrides: object.__init__