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

Class CustomHandler

python/tests/proton_tests/handler.py:33–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 def test_reactorHandlerCycling(self, n=0):
32
33 class CustomHandler(Handler):
34 UNSET = 999999999
35
36 def __init__(self):
37 self.offset = len(traceback.extract_stack())
38
39 def on_reactor_init(self, event):
40 self.depth = len(traceback.extract_stack())
41
42 def reset(self):
43 self.depth = self.UNSET
44
45 @property
46 def init_depth(self):
47 d = self.depth - self.offset
48 return d
49 custom = CustomHandler()
50
51 container = Container()

Callers 2

do_customEventMethod · 0.85

Calls

no outgoing calls

Tested by 1