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

Method __init__

python/examples/db_send.py:32–41  ·  view source on GitHub ↗
(self, url, count)

Source from the content-addressed store, hash-verified

30
31class Send(MessagingHandler):
32 def __init__(self, url, count):
33 super(Send, self).__init__()
34 self.url = url
35 self.delay = 0
36 self.sent = 0
37 self.confirmed = 0
38 self.load_count = 0
39 self.records = queue.Queue(maxsize=50)
40 self.target = count
41 self.db = Db("src_db", EventInjector())
42
43 def keep_sending(self):
44 return self.target == 0 or self.sent < self.target

Callers

nothing calls this directly

Calls 3

DbClass · 0.90
EventInjectorClass · 0.90
QueueMethod · 0.80

Tested by

no test coverage detected