Top Description Methods
reactor.netty.http

public Interface HttpMetricsRecorder

extends ChannelMetricsRecorder
Known Direct Subinterfaces
reactor.netty.http.client.HttpClientMetricsRecorder, reactor.netty.http.server.HttpServerMetricsRecorder
Known Direct Implementers
reactor.netty.http.MicrometerHttpMetricsRecorder, reactor.netty.http.ContextAwareHttpMetricsRecorder
Imports
reactor.netty.channel.ChannelMetricsRecorder, java.net.SocketAddress

Interface for recording metrics for HTTP protocol.
Author
Violeta Georgieva

Method Summary

Modifier and TypeMethod and Description
public void
incrementErrorsCount(SocketAddress
The remote peer
remoteAddress
,
String
the requested URI
uri
)

Increments the number of the errors that are occurred.

public void
recordDataReceived(SocketAddress
The remote peer
remoteAddress
,
String
the requested URI
uri
,
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
,
String
the requested URI
uri
,
long
The amount of the data that is sent, in bytes
bytes
)

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

Inherited from reactor.netty.channel.ChannelMetricsRecorder:
incrementErrorsCountrecordConnectTimerecordDataReceivedrecordDataSentrecordResolveAddressTimerecordServerConnectionClosedrecordServerConnectionOpenedrecordTlsHandshakeTime

Method Detail

incrementErrorsCountback to summary
public void incrementErrorsCount(SocketAddress remoteAddress, String uri)

Increments the number of the errors that are occurred.

Parameters
remoteAddress:SocketAddress

The remote peer

uri:String

the requested URI

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

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

Parameters
remoteAddress:SocketAddress

The remote peer

uri:String

the requested URI

bytes:long

The amount of the data that is received, in bytes

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

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

Parameters
remoteAddress:SocketAddress

The remote peer

uri:String

the requested URI

bytes:long

The amount of the data that is sent, in bytes