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 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) default voiddefault voidiceStateChange(tel.schich.libdatachannel.IceState state) default voidmessagesIn(int count) default voidmessagesOut(int count) 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) -
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
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()
-