Package core :: Module event_bus :: Class Message

[hide private]
[frames] | no frames]

# Class Message

source code

    object --+
             |
            Message

Represents a message received from the event bus

Instance Methods | [hide private]

__init__(self, message) | source code

reply(self, reply, handler=None) Reply to this message. | source code

Method Details | [hide private]

### __init__(self, message)
(Constructor)

source code

Overrides: object.__init__
  (inherited documentation)

### reply(self, reply, handler=None)

source code

Reply to this message. If the message was sent specifying a receipt handler, that handler will be called when it has received a reply. If the message wasn't sent specifying a receipt handler this method does nothing. Replying to a message this way is equivalent to sending a message to an address which is the same as the message id of the original message.

Keyword arguments:

Parameters:
  - `reply` - message to send as reply
  - `handler` - the reply handler