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