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,
Duration time,
String status)
Records the time that is spent for connecting to the remote address.
|
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,
Duration time,
String status)
Records the time that is spent for resolving the remote address.
|
default void |
recordServerConnectionClosed(SocketAddress localAddress)
Records a just disconnected server connection.
|
default void |
recordServerConnectionOpened(SocketAddress localAddress)
Records a just accepted server connection.
|
void |
recordTlsHandshakeTime(SocketAddress remoteAddress,
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, Duration time, String status)
remoteAddress
- The remote peertime
- the time in nanoseconds that is spent for TLS handshakestatus
- the status of the operationvoid recordConnectTime(SocketAddress remoteAddress, Duration time, 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(SocketAddress remoteAddress, Duration time, String status)
remoteAddress
- The remote peertime
- the time in nanoseconds that is spent for resolving to the remote addressstatus
- the status of the operationdefault void recordServerConnectionOpened(SocketAddress localAddress)
localAddress
- the server local addressdefault void recordServerConnectionClosed(SocketAddress localAddress)
localAddress
- the server local address