Simple subscription publisher.
The subscription publisher that notifies remote listeners with
published value updates.
Remote listeners can subscribe and unsubscribe at any time.
|
__init__(self,
user_command=None,
max_queue_length=1,
overflow_command=__DefaultOverflowCommand())
Constructor. |
|
|
|
register_at(self,
agent,
object_name)
Registers the publisher at the given agent. |
|
|
|
unregister(self)
Unregisters the publisher from its associated agent. |
|
|
|
|
|
subscribe(self,
destination_target,
destination_object)
Subscribes the new listener. |
|
|
|
unsubscribe(self,
destination_target)
Unsubscribes the given listener. |
|
|
|
publish(self,
value,
priority=0)
Publishes the new value. |
|
|
|
get_number_of_subscribers(self)
Returns the number of active subscribers. |
|
|
|
get_subscribers(self)
Returns the information about all active subscribers. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|