addDisconnectionReason

abstract fun addDisconnectionReason(inetAddress: InetAddress, reason: Int)

Adds a channel disconnection reason from the provided inetAddress.

Parameters

inetAddress

the address which was disconnected.

reason

the numeric reason behind the disconnection. These values are backed by an enum provided in the corresponding net.rsprot.protocol.metrics.NetworkTrafficMonitor, from which the Enum.ordinal value is used for the numeric representation.