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

Method send

python/examples/db_send.py:70–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 self.send()
69
70 def send(self):
71 while self.sender.credit and not self.records.empty():
72 if not self.keep_sending():
73 return
74 record = self.records.get(False)
75 id = record['id']
76 self.sender.send(Message(id=id, durable=True, body=record['description']), tag=str(id))
77 self.sent += 1
78 print("sent message %s" % id)
79 self.request_records()
80
81 def on_settled(self, event):
82 id = int(event.delivery.tag)

Callers 15

on_records_loadedMethod · 0.95
on_sendableMethod · 0.95
on_messageMethod · 0.45
on_sendableMethod · 0.45
on_messageMethod · 0.45
test_multiframeMethod · 0.45
test_multiframe_abortMethod · 0.45
test_dispositionMethod · 0.45
test_cleanupMethod · 0.45
testMinFrameMethod · 0.45

Calls 7

keep_sendingMethod · 0.95
request_recordsMethod · 0.95
MessageClass · 0.90
printFunction · 0.85
strFunction · 0.50
emptyMethod · 0.45
getMethod · 0.45

Tested by 8

on_messageMethod · 0.36
on_sendableMethod · 0.36
test_multiframeMethod · 0.36
test_multiframe_abortMethod · 0.36
test_dispositionMethod · 0.36
test_cleanupMethod · 0.36