Top Description Constructors Methods
reactor.netty5.http

public abstract Class ContextAwareHttpMetricsRecorder

extends ContextAwareChannelMetricsRecorder
implements HttpMetricsRecorder
Class Inheritance
All Implemented Interfaces
reactor.netty5.http.HttpMetricsRecorder, reactor.netty5.channel.ChannelMetricsRecorder
Known Direct Subclasses
reactor.netty5.http.client.ContextAwareHttpClientMetricsRecorder, reactor.netty5.http.server.ContextAwareHttpServerMetricsRecorder
Imports
reactor.netty5.channel.ContextAwareChannelMetricsRecorder, reactor.util.context.Context, .ContextView, java.net.SocketAddress

ContextView aware class for recording metrics for HTTP protocol.
Author
Violeta Georgieva
Since
1.0.8

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
incrementErrorsCount(ContextView
The current ContextView associated with the Mono/Flux
contextView
,
SocketAddress
The remote peer
remoteAddress
,
String
The requested URI
uri
)

Increments the number of the errors that are occurred

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

Implements reactor.netty5.http.HttpMetricsRecorder.incrementErrorsCount.

Increments the number of the errors that are occurred
public abstract void
recordDataReceived(ContextView
The current ContextView associated with the Mono/Flux
contextView
,
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
recordDataReceived(SocketAddress
The remote peer
remoteAddress
,
String
the requested URI
uri
,
long
The amount of the data that is received, in bytes
bytes
)

Implements reactor.netty5.http.HttpMetricsRecorder.recordDataReceived.

Records the amount of the data that is received, in bytes
public abstract void
recordDataSent(ContextView
The current ContextView associated with the Mono/Flux
contextView
,
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

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
)

Implements reactor.netty5.http.HttpMetricsRecorder.recordDataSent.

Records the amount of the data that is sent, in bytes
Inherited from reactor.netty5.channel.ContextAwareChannelMetricsRecorder:
incrementErrorsCountincrementErrorsCountrecordConnectTimerecordConnectTimerecordDataReceivedrecordDataReceivedrecordDataSentrecordDataSentrecordTlsHandshakeTimerecordTlsHandshakeTime

Constructor Detail

ContextAwareHttpMetricsRecorderback to summary
public ContextAwareHttpMetricsRecorder()

Method Detail

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

Increments the number of the errors that are occurred

Parameters
contextView:ContextView

The current ContextView associated with the Mono/Flux

remoteAddress:SocketAddress

The remote peer

uri:String

The requested URI

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

Implements reactor.netty5.http.HttpMetricsRecorder.incrementErrorsCount.

Doc from reactor.netty5.http.HttpMetricsRecorder.incrementErrorsCount.

Increments the number of the errors that are occurred

Parameters
remoteAddress:SocketAddress

The remote peer

uri:String

the requested URI

Annotations
@Override
recordDataReceivedback to summary
public abstract void recordDataReceived(ContextView contextView, SocketAddress remoteAddress, String uri, long bytes)

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

Parameters
contextView:ContextView

The current ContextView associated with the Mono/Flux

remoteAddress:SocketAddress

The remote peer

uri:String

The requested URI

bytes:long

The amount of the data that is received, in bytes

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

Implements reactor.netty5.http.HttpMetricsRecorder.recordDataReceived.

Doc from reactor.netty5.http.HttpMetricsRecorder.recordDataReceived.

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

Annotations
@Override
recordDataSentback to summary
public abstract void recordDataSent(ContextView contextView, SocketAddress remoteAddress, String uri, long bytes)

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

Parameters
contextView:ContextView

The current ContextView associated with the Mono/Flux

remoteAddress:SocketAddress

The remote peer

uri:String

The requested URI

bytes:long

The amount of the data that is sent, in bytes

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

Implements reactor.netty5.http.HttpMetricsRecorder.recordDataSent.

Doc from reactor.netty5.http.HttpMetricsRecorder.recordDataSent.

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

Annotations
@Override