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))
def _get_ttl(self): return millis2secs(pn_message_get_ttl(self._msg))