def setFreshnessPeriod(self, freshnessPeriod): """ Set the freshness period. :param float freshnessPeriod: The freshness period in milliseconds, or None for not specified. """ self._freshnessPeriod = Common.nonNegativeFloatOrNone(freshnessPeriod) self._changeCount += 1
def setLatestPacketFreshnessPeriod(self, latestPacketFreshnessPeriod): """ Set the freshness period to use for the produced _latest data packet. :param float latestPacketFreshnessPeriod: The freshness period in milliseconds. """ self._latestPacketFreshnessPeriod = Common.nonNegativeFloatOrNone( latestPacketFreshnessPeriod)
def setFreshnessPeriod(self, freshnessPeriod): """ Set the freshness period. :param float freshnessPeriod: The freshness period in milliseconds, or None for not specified. """ self._freshnessPeriod = Common.nonNegativeFloatOrNone(freshnessPeriod) self._changeCount += 1
def setTimestamp(self, timestamp): """ Set the time stamp. :param float timestamp: The time stamp. :return: This ContentMetaInfo so that you can chain calls to update values. :rtype: ContentMetaInfo """ self._timestamp = Common.nonNegativeFloatOrNone(timestamp) return self
def setInterestLifetimeMilliseconds(self, interestLifetimeMilliseconds): """ Set the interest lifetime. :param float interestLifetimeMilliseconds: The interest lifetime in milliseconds. If not specified, set to None. :return: This Interest so that you can chain calls to update values. :rtype: Interest """ self._interestLifetimeMilliseconds = Common.nonNegativeFloatOrNone( interestLifetimeMilliseconds) self._changeCount += 1 return self
def setInterestLifetimeMilliseconds(self, interestLifetimeMilliseconds): """ Set the interest lifetime. :param float interestLifetimeMilliseconds: The interest lifetime in milliseconds. If not specified, set to None. :return: This Interest so that you can chain calls to update values. :rtype: Interest """ self._interestLifetimeMilliseconds = Common.nonNegativeFloatOrNone( interestLifetimeMilliseconds) self._changeCount += 1 return self