public interface ChannelMetricsRecorder
Modifier and Type | Method and Description |
---|---|
void |
incrementErrorsCount(SocketAddress remoteAddress)
Increments the number of the errors that have occurred.
|
default void |
incrementErrorsCount(SocketAddress remoteAddress,
SocketAddress proxyAddress)
Increments the number of the errors that have occurred.
|
void |
recordConnectTime(SocketAddress remoteAddress,
Duration time,
String status)
Records the time that is spent for connecting to the remote address.
|
default void |
recordConnectTime(SocketAddress remoteAddress,
SocketAddress proxyAddress,
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.
|
default void |
recordDataReceived(SocketAddress remoteAddress,
SocketAddress proxyAddress,
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.
|
default void |
recordDataSent(SocketAddress remoteAddress,
SocketAddress proxyAddress,
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.
|
default void |
recordTlsHandshakeTime(SocketAddress remoteAddress,
SocketAddress proxyAddress,
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 bytesdefault void recordDataReceived(SocketAddress remoteAddress, SocketAddress proxyAddress, long bytes)
remoteAddress
- The remote peerproxyAddress
- The proxy addressbytes
- 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 bytesdefault void recordDataSent(SocketAddress remoteAddress, SocketAddress proxyAddress, long bytes)
remoteAddress
- The remote peerproxyAddress
- The proxy addressbytes
- The amount of the data that is sent, in bytesvoid incrementErrorsCount(SocketAddress remoteAddress)
remoteAddress
- The remote peerdefault void incrementErrorsCount(SocketAddress remoteAddress, SocketAddress proxyAddress)
remoteAddress
- The remote peerproxyAddress
- The proxy addressvoid 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 operationdefault void recordTlsHandshakeTime(SocketAddress remoteAddress, SocketAddress proxyAddress, Duration time, String status)
remoteAddress
- The remote peerproxyAddress
- The proxy addresstime
- 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 operationdefault void recordConnectTime(SocketAddress remoteAddress, SocketAddress proxyAddress, Duration time, String status)
remoteAddress
- The remote peerproxyAddress
- The proxy addresstime
- 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