Class RTCDataChannelStats


  • public class RTCDataChannelStats
    extends RTCStats
    Statistics related to RTC data channels.
    • Constructor Detail

      • RTCDataChannelStats

        protected RTCDataChannelStats()
        Default private constructor of RTCDataChannelStats for serialization with Jackson
      • RTCDataChannelStats

        public RTCDataChannelStats​(String id,
                                   StatsType type,
                                   long timestampMillis,
                                   String label,
                                   String protocol,
                                   long datachannelid,
                                   RTCDataChannelState state,
                                   long messagesSent,
                                   long bytesSent,
                                   long messagesReceived,
                                   long bytesReceived)
        Create a RTCDataChannelStats
    • Method Detail

      • getLabel

        public String getLabel()
        get The RTCDatachannel label.
      • setLabel

        public void setLabel​(String label)
        set The RTCDatachannel label.
      • getProtocol

        public String getProtocol()
        get The protocol used.
      • setProtocol

        public void setProtocol​(String protocol)
        set The protocol used.
      • getDatachannelid

        public long getDatachannelid()
        get The RTCDatachannel identifier.
      • setDatachannelid

        public void setDatachannelid​(long datachannelid)
        set The RTCDatachannel identifier.
      • setState

        public void setState​(RTCDataChannelState state)
        set The state of the RTCDatachannel.
      • getMessagesSent

        public long getMessagesSent()
        get Represents the total number of API 'message' events sent.
      • setMessagesSent

        public void setMessagesSent​(long messagesSent)
        set Represents the total number of API 'message' events sent.
      • getBytesSent

        public long getBytesSent()
        get Represents the total number of payload bytes sent on this RTCDatachannel, i.e., not including headers or padding.
      • setBytesSent

        public void setBytesSent​(long bytesSent)
        set Represents the total number of payload bytes sent on this RTCDatachannel, i.e., not including headers or padding.
      • getMessagesReceived

        public long getMessagesReceived()
        get Represents the total number of API 'message' events received.
      • setMessagesReceived

        public void setMessagesReceived​(long messagesReceived)
        set Represents the total number of API 'message' events received.
      • getBytesReceived

        public long getBytesReceived()
        get Represents the total number of bytes received on this RTCDatachannel, i.e., not including headers or padding.
      • setBytesReceived

        public void setBytesReceived​(long bytesReceived)
        set Represents the total number of bytes received on this RTCDatachannel, i.e., not including headers or padding.