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

Class 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 Handler: on_unhandled

Inherited from Acking: accept, reject, release, settle

Class Variables

Inherited from Handler: handlers

Method Details

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

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 refering 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.