Interface NetherChannelMetrics


public interface NetherChannelMetrics
Per connection counters and events. Called from the transport's threads, not one of your own: the inbound counters, decodeFail(int) and the state changes fire on the native callback thread, the outbound counters on the channel's event loop, so an implementation is thread safe or hands off.
  • Method Details

    • bytesIn

      default void bytesIn(int count)
    • bytesOut

      default void bytesOut(int count)
    • messagesIn

      default void messagesIn(int count)
    • messagesOut

      default void messagesOut(int count)
    • decodeFail

      default void decodeFail(int count)
    • peerStateChange

      default void peerStateChange(tel.schich.libdatachannel.PeerState state)
    • iceStateChange

      default void iceStateChange(tel.schich.libdatachannel.IceState state)
    • pathSelected

      default void pathSelected(String localType, String remoteType)
      ICE candidate types, host, srflx, prflx or relay, either null.
    • connectionFailed

      default void connectionFailed(NetherConnectionFailure reason)
      At most once per attempt, so a client that retries reports one per attempt.
    • handshakeRetry

      default void handshakeRetry()