コード例 #1
0
    def capacity(self) -> int:
        """
        Get the amount of free space for input following the transport's
        tail pointer.

        :return: Available space for input in bytes.
        :raise: :exc:`TransportException` if there is any Proton error.
        """
        c = pn_transport_capacity(self._impl)
        if c >= PN_EOS:
            return c
        else:
            return self._check(c)
コード例 #2
0
ファイル: _transport.py プロジェクト: apache/qpid-proton
 def capacity(self):
     c = pn_transport_capacity(self._impl)
     if c >= PN_EOS:
         return c
     else:
         return self._check(c)
コード例 #3
0
ファイル: _transport.py プロジェクト: archerabi/qpid-proton
 def capacity(self):
     c = pn_transport_capacity(self._impl)
     if c >= PN_EOS:
         return c
     else:
         return self._check(c)