Class DefaultControlMessage

    • Constructor Detail

      • DefaultControlMessage

        public DefaultControlMessage​(ControlMessage.Type type,
                                     DeviceId deviceId,
                                     long load,
                                     long rate,
                                     long count,
                                     long timestamp)
        Generates a control message instance using given type and statistic information.
        Parameters:
        type - control message type
        deviceId - device identification
        load - control message load
        rate - control message rate
        count - control message count
        timestamp - time stamp of the control message stats
    • Method Detail

      • load

        public long load()
        Description copied from interface: ControlMessage
        Returns the latest control message load.
        Specified by:
        load in interface ControlMessage
        Returns:
        control message load
      • rate

        public long rate()
        Description copied from interface: ControlMessage
        Returns the latest control message rate.
        Specified by:
        rate in interface ControlMessage
        Returns:
        control message rate
      • count

        public long count()
        Description copied from interface: ControlMessage
        Returns the latest control message packet count.
        Specified by:
        count in interface ControlMessage
        Returns:
        packet count
      • timestamp

        public long timestamp()
        Description copied from interface: ControlMessage
        Returns the time that this control message stats collected.
        Specified by:
        timestamp in interface ControlMessage
        Returns:
        time stamp.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object