Interface NetherChannelMetrics


public interface NetherChannelMetrics
Per connection counters and events. Called from the transport's threads, not one of your own: any of them may fire on the native callback thread or 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
    fragmentsOut(int count)
    Frames carrying part of a split message other than the last, which counts in messagesOut(int).
    default void
     
    default void
    iceStateChange(tel.schich.libdatachannel.IceState state)
     
    default void
    messagesIn(int count)
    Whole messages, however many frames each took.
    default void
    messagesOut(int count)
    Whole messages, however many frames each took.
    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)
      Whole messages, however many frames each took.
    • messagesOut

      default void messagesOut(int count)
      Whole messages, however many frames each took.
    • fragmentsIn

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

      default void fragmentsOut(int count)
      Frames carrying part of a split message other than the last, which counts in messagesOut(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()