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 Summary

    Modifier and Type
    Method
    Description
    default void
    bytesIn(int count)
     
    default void
    bytesOut(int count)
     
    default void
    At most once per attempt, so a client that retries reports one per attempt.
    default void
    decodeFail(int count)
    Inbound messages that cannot be delivered: one abandoned because fragments went missing or the next began first, and an empty frame or message.
    default void
    fragmentsIn(int count)
    Frames carrying part of a split message other than the last, which counts in messagesIn(int).
    default void
     
    default void
    iceStateChange(tel.schich.libdatachannel.IceState state)
     
    default void
    messagesIn(int count)
     
    default void
    messagesOut(int count)
     
    default void
    pathSelected(String localType, String remoteType)
    ICE candidate types, host, srflx, prflx or relay, either null.
    default void
    peerStateChange(tel.schich.libdatachannel.PeerState state)
     
  • 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)
    • fragmentsIn

      default void fragmentsIn(int count)
      Frames carrying part of a split message other than the last, which counts in messagesIn(int).
    • decodeFail

      default void decodeFail(int count)
      Inbound messages that cannot be delivered: one abandoned because fragments went missing or the next began first, and an empty frame or message.
    • 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()