예제 #1
0
    def ttl(self) -> float:
        """The time to live of the message measured in seconds. Expired messages
        may be dropped.

        :raise: :exc:`MessageException` if there is any Proton error when using the setter.
        """
        return millis2secs(pn_message_get_ttl(self._msg))
예제 #2
0
 def _get_ttl(self):
     return millis2secs(pn_message_get_ttl(self._msg))