Package reactor.netty.http
Class ContextAwareHttpMetricsRecorder
java.lang.Object
reactor.netty.channel.ContextAwareChannelMetricsRecorder
reactor.netty.http.ContextAwareHttpMetricsRecorder
- All Implemented Interfaces:
ChannelMetricsRecorder
,HttpMetricsRecorder
- Direct Known Subclasses:
ContextAwareHttpClientMetricsRecorder
,ContextAwareHttpServerMetricsRecorder
public abstract class ContextAwareHttpMetricsRecorder
extends ContextAwareChannelMetricsRecorder
implements HttpMetricsRecorder
ContextView
aware class for recording metrics for HTTP protocol.- Since:
- 1.0.8
- Author:
- Violeta Georgieva
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
incrementErrorsCount
(SocketAddress remoteAddress, String uri) Increments the number of the errors that are occurred.abstract void
incrementErrorsCount
(ContextView contextView, SocketAddress remoteAddress, String uri) Increments the number of the errors that are occurred.void
recordDataReceived
(SocketAddress remoteAddress, String uri, long bytes) Records the amount of the data that is received, in bytes.abstract void
recordDataReceived
(ContextView contextView, SocketAddress remoteAddress, String uri, long bytes) Records the amount of the data that is received, in bytes.void
recordDataSent
(SocketAddress remoteAddress, String uri, long bytes) Records the amount of the data that is sent, in bytes.abstract void
recordDataSent
(ContextView contextView, SocketAddress remoteAddress, String uri, long bytes) Records the amount of the data that is sent, in bytes.Methods inherited from class reactor.netty.channel.ContextAwareChannelMetricsRecorder
incrementErrorsCount, incrementErrorsCount, incrementErrorsCount, incrementErrorsCount, recordConnectTime, recordConnectTime, recordConnectTime, recordConnectTime, recordDataReceived, recordDataReceived, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent, recordDataSent, recordDataSent, recordTlsHandshakeTime, recordTlsHandshakeTime, recordTlsHandshakeTime, recordTlsHandshakeTime
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface reactor.netty.channel.ChannelMetricsRecorder
incrementErrorsCount, incrementErrorsCount, recordConnectTime, recordConnectTime, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTime, recordTlsHandshakeTime
-
Constructor Details
-
ContextAwareHttpMetricsRecorder
public ContextAwareHttpMetricsRecorder()
-
-
Method Details
-
incrementErrorsCount
public abstract void incrementErrorsCount(ContextView contextView, SocketAddress remoteAddress, String uri) Increments the number of the errors that are occurred.- Parameters:
contextView
- The currentContextView
associated with the Mono/FluxremoteAddress
- The remote peeruri
- The requested URI
-
recordDataReceived
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
- The currentContextView
associated with the Mono/FluxremoteAddress
- The remote peeruri
- The requested URIbytes
- The amount of the data that is received, in bytes
-
recordDataSent
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
- The currentContextView
associated with the Mono/FluxremoteAddress
- The remote peeruri
- The requested URIbytes
- The amount of the data that is sent, in bytes
-
recordDataReceived
Description copied from interface:HttpMetricsRecorder
Records the amount of the data that is received, in bytes.- Specified by:
recordDataReceived
in interfaceHttpMetricsRecorder
- Parameters:
remoteAddress
- The remote peeruri
- the requested URIbytes
- The amount of the data that is received, in bytes
-
recordDataSent
Description copied from interface:HttpMetricsRecorder
Records the amount of the data that is sent, in bytes.- Specified by:
recordDataSent
in interfaceHttpMetricsRecorder
- Parameters:
remoteAddress
- The remote peeruri
- the requested URIbytes
- The amount of the data that is sent, in bytes
-
incrementErrorsCount
Description copied from interface:HttpMetricsRecorder
Increments the number of the errors that are occurred.- Specified by:
incrementErrorsCount
in interfaceHttpMetricsRecorder
- Parameters:
remoteAddress
- The remote peeruri
- the requested URI
-