MCPcopy Create free account
hub / github.com/apache/qpid-proton / on_message

Method on_message

python/examples/tx_recv.py:43–49  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

41 self.transaction = None
42
43 def on_message(self, event):
44 print(event.message.body)
45 self.transaction.accept(event.delivery)
46 self.current_batch += 1
47 if self.current_batch == self.batch_size:
48 self.transaction.commit()
49 self.transaction = None
50
51 def on_transaction_declared(self, event):
52 self.receiver.flow(self.batch_size)

Callers

nothing calls this directly

Calls 3

printFunction · 0.85
commitMethod · 0.80
acceptMethod · 0.45

Tested by

no test coverage detected