Package horizons :: Package messaging :: Module message :: Class QueuingMessage
[hide private]
[frames] | no frames]

Class QueuingMessage

source code

Message --+

QueuingMessage class for the QueuingMessageBus. Every Message that is supposed to be sent through the QueuingMessageBus has to subclass this subclass.

Instance Methods [hide private]
    Inherited from Message
__init__(self, sender, *args) source code
Class Methods [hide private]
clear(cls, *args)
Empty the message queue for this Message class
source code
queue_len(cls, *args)
Get the length the message queue for this Message class
source code
    Inherited from Message
broadcast(cls, *args)
Send a message that is initialized with `args`.
source code
discard(cls, callback, sender=None)
Similar to `Message.unsubscribe`, but does not raise an error if the callback has not been registered before.
source code
subscribe(cls, callback, sender=None)
Register a callback to be called whenever a message of this type is send.
source code
unsubscribe(cls, callback, sender=None)
Stop your subscription of this message type for the specified callback.
source code
Class Variables [hide private]
  bus = QueuingMessageBus
    Inherited from Message
  arguments = tuple()