public interface ChannelMetricsRecorder
Modifier and Type | Method and Description |
---|---|
void |
incrementErrorsCount(SocketAddress remoteAddress)
Increments the number of the errors that are occurred
|
void |
recordConnectTime(SocketAddress remoteAddress,
java.time.Duration time,
String status)
Records the time that is spent for connecting to the remote address
Relevant only when on the client
|
void |
recordDataReceived(SocketAddress remoteAddress,
long bytes)
Records the amount of the data that is received, in bytes
|
void |
recordDataSent(SocketAddress remoteAddress,
long bytes)
Records the amount of the data that is sent, in bytes
|
void |
recordResolveAddressTime(SocketAddress remoteAddress,
java.time.Duration time,
String status)
Records the time that is spent for resolving the remote address
Relevant only when on the client
|
void |
recordTlsHandshakeTime(SocketAddress remoteAddress,
java.time.Duration time,
String status)
Records the time that is spent for TLS handshake
|
void recordDataReceived(SocketAddress remoteAddress, long bytes)
remoteAddress
- The remote peerbytes
- The amount of the data that is received, in bytesvoid recordDataSent(SocketAddress remoteAddress, long bytes)
remoteAddress
- The remote peerbytes
- The amount of the data that is sent, in bytesvoid incrementErrorsCount(SocketAddress remoteAddress)
remoteAddress
- The remote peervoid recordTlsHandshakeTime(SocketAddress remoteAddress, java.time.Duration time, String status)
remoteAddress
- The remote peertime
- the time that is spent for TLS handshakestatus
- the status of the operationvoid recordConnectTime(SocketAddress remoteAddress, java.time.Duration time, String status)
remoteAddress
- The remote peertime
- the time that is spent for connecting to the remote addressstatus
- the status of the operationvoid recordResolveAddressTime(SocketAddress remoteAddress, java.time.Duration time, String status)
remoteAddress
- The remote peertime
- the time that is spent for resolving to the remote addressstatus
- the status of the operation