Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
    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
Ejemplo n.º 4
0
    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
Ejemplo n.º 5
0
    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
Ejemplo n.º 6
0
    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