Top Description Methods
reactor.netty.channel

public Interface ChannelMetricsRecorder

Known Direct Implementers
reactor.netty.channel.ContextAwareChannelMetricsRecorder, reactor.netty.channel.MicrometerChannelMetricsRecorder
Imports
java.net.SocketAddress, java.time.Duration

Interface for recording metrics on protocol level.
Author
Violeta Georgieva

Method Summary

Modifier and TypeMethod and Description
public void
incrementErrorsCount(SocketAddress
The remote peer
remoteAddress
)

Increments the number of the errors that are occurred.

public void
recordConnectTime(SocketAddress
The remote peer
remoteAddress
,
Duration
the time in nanoseconds that is spent for connecting to the remote address
time
,
String
the status of the operation
status
)

Records the time that is spent for connecting to the remote address.

public void
recordDataReceived(SocketAddress
The remote peer
remoteAddress
,
long
The amount of the data that is received, in bytes
bytes
)

Records the amount of the data that is received, in bytes.

public void
recordDataSent(SocketAddress
The remote peer
remoteAddress
,
long
The amount of the data that is sent, in bytes
bytes
)

Records the amount of the data that is sent, in bytes.

public void
recordResolveAddressTime(SocketAddress
The remote peer
remoteAddress
,
Duration
the time in nanoseconds that is spent for resolving to the remote address
time
,
String
the status of the operation
status
)

Records the time that is spent for resolving the remote address.

public default void
recordServerConnectionClosed(SocketAddress
the server local address
localAddress
)

Records a just disconnected server connection.

public default void
recordServerConnectionOpened(SocketAddress
the server local address
localAddress
)

Records a just accepted server connection.

public void
recordTlsHandshakeTime(SocketAddress
The remote peer
remoteAddress
,
Duration
the time in nanoseconds that is spent for TLS handshake
time
,
String
the status of the operation
status
)

Records the time that is spent for TLS handshake.

Method Detail

incrementErrorsCountback to summary
public void incrementErrorsCount(SocketAddress remoteAddress)

Increments the number of the errors that are occurred.

Parameters
remoteAddress:SocketAddress

The remote peer

recordConnectTimeback to summary
public void recordConnectTime(SocketAddress remoteAddress, Duration time, String status)

Records the time that is spent for connecting to the remote address. Relevant only when on the client

Parameters
remoteAddress:SocketAddress

The remote peer

time:Duration

the time in nanoseconds that is spent for connecting to the remote address

status:String

the status of the operation

recordDataReceivedback to summary
public void recordDataReceived(SocketAddress remoteAddress, long bytes)

Records the amount of the data that is received, in bytes.

Parameters
remoteAddress:SocketAddress

The remote peer

bytes:long

The amount of the data that is received, in bytes

recordDataSentback to summary
public void recordDataSent(SocketAddress remoteAddress, long bytes)

Records the amount of the data that is sent, in bytes.

Parameters
remoteAddress:SocketAddress

The remote peer

bytes:long

The amount of the data that is sent, in bytes

recordResolveAddressTimeback to summary
public void recordResolveAddressTime(SocketAddress remoteAddress, Duration time, String status)

Records the time that is spent for resolving the remote address. Relevant only when on the client.

Parameters
remoteAddress:SocketAddress

The remote peer

time:Duration

the time in nanoseconds that is spent for resolving to the remote address

status:String

the status of the operation

recordServerConnectionClosedback to summary
public default void recordServerConnectionClosed(SocketAddress localAddress)

Records a just disconnected server connection.

Parameters
localAddress:SocketAddress

the server local address

Since
1.0.15
recordServerConnectionOpenedback to summary
public default void recordServerConnectionOpened(SocketAddress localAddress)

Records a just accepted server connection.

Parameters
localAddress:SocketAddress

the server local address

Since
1.0.15
recordTlsHandshakeTimeback to summary
public void recordTlsHandshakeTime(SocketAddress remoteAddress, Duration time, String status)

Records the time that is spent for TLS handshake.

Parameters
remoteAddress:SocketAddress

The remote peer

time:Duration

the time in nanoseconds that is spent for TLS handshake

status:String

the status of the operation