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

Method draining

python/proton/_endpoints.py:1243–1251  ·  view source on GitHub ↗

Check if a link is currently draining. A link is defined to be draining when drain mode is set to ``True``, and the sender still has excess credit. :return: ``True`` if the link is currently draining, ``False`` otherwise.

(self)

Source from the content-addressed store, hash-verified

1241 pn_link_drain(self._impl, n)
1242
1243 def draining(self) -> bool:
1244 """
1245 Check if a link is currently draining. A link is defined
1246 to be draining when drain mode is set to ``True``, and the
1247 sender still has excess credit.
1248
1249 :return: ``True`` if the link is currently draining, ``False`` otherwise.
1250 """
1251 return pn_link_draining(self._impl)
1252
1253
1254class Terminus(object):

Callers 2

testFullDrainMethod · 0.45
testPartialDrainMethod · 0.45

Calls 1

pn_link_drainingFunction · 0.85

Tested by

no test coverage detected