Package proton :: Module _handlers :: Class IncomingMessageHandler
[frames] | no frames]

type IncomingMessageHandler

source code

Known Subclasses:

A utility for simpler and more intuitive handling of delivery events related to incoming i.e. received messages.

Instance Methods
__init__(self, auto_accept=True, delegate=None) source code
on_delivery(self, event) source code
on_message(self, event)
Called when a message is received.
source code
on_settled(self, event) source code
on_aborted(self, event) source code

Inherited from _events.Handler: add, handlers, on_unhandled

Inherited from Acking: accept, reject, release, settle

Method Details

__init__(self, auto_accept=True, delegate=None)

source code 
Overrides: object.__init__
(inherited documentation)

on_message(self, event)

source code 

Called when a message is received. The message itself can be obtained as a property on the event. For the purpose of referring to this message in further actions (e.g. if explicitly accepting it, the ``delivery`` should be used, also obtainable via a property on the event.