Package netaddr :: Module core :: Class Publisher
[hide private]
[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 [hide private]
 
__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 [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Constructor

Overrides: object.__init__