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 TypeMethodDescriptiondefault voidbytesIn(int count) default voidbytesOut(int count) default voidAt most once per attempt, so a client that retries reports one per attempt.default voiddecodeFail(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 voidfragmentsIn(int count) Frames carrying part of a split message other than the last, which counts inmessagesIn(int).default voidfragmentsOut(int count) Frames carrying part of a split message other than the last, which counts inmessagesOut(int).default voiddefault voidiceStateChange(tel.schich.libdatachannel.IceState state) default voidmessagesIn(int count) Whole messages, however many frames each took.default voidmessagesOut(int count) Whole messages, however many frames each took.default voidpathSelected(String localType, String remoteType) ICE candidate types,host,srflx,prflxorrelay, either null.default voidpeerStateChange(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 inmessagesIn(int). -
fragmentsOut
default void fragmentsOut(int count) Frames carrying part of a split message other than the last, which counts inmessagesOut(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
ICE candidate types,host,srflx,prflxorrelay, either null. -
connectionFailed
At most once per attempt, so a client that retries reports one per attempt. -
handshakeRetry
default void handshakeRetry()
-