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 TypeMethodDescriptionvoidincrementErrorsCount(SocketAddress remoteAddress, String uri) Increments the number of the errors that are occurred.abstract voidincrementErrorsCount(ContextView contextView, SocketAddress remoteAddress, String uri) Increments the number of the errors that are occurred.voidrecordDataReceived(SocketAddress remoteAddress, String uri, long bytes) Records the amount of the data that is received, in bytes.abstract voidrecordDataReceived(ContextView contextView, SocketAddress remoteAddress, String uri, long bytes) Records the amount of the data that is received, in bytes.voidrecordDataSent(SocketAddress remoteAddress, String uri, long bytes) Records the amount of the data that is sent, in bytes.abstract voidrecordDataSent(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, recordTlsHandshakeTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 currentContextViewassociated 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 currentContextViewassociated 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 currentContextViewassociated 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:HttpMetricsRecorderRecords the amount of the data that is received, in bytes.- Specified by:
recordDataReceivedin interfaceHttpMetricsRecorder- Parameters:
remoteAddress- The remote peeruri- the requested URIbytes- The amount of the data that is received, in bytes
-
recordDataSent
Description copied from interface:HttpMetricsRecorderRecords the amount of the data that is sent, in bytes.- Specified by:
recordDataSentin interfaceHttpMetricsRecorder- Parameters:
remoteAddress- The remote peeruri- the requested URIbytes- The amount of the data that is sent, in bytes
-
incrementErrorsCount
Description copied from interface:HttpMetricsRecorderIncrements the number of the errors that are occurred.- Specified by:
incrementErrorsCountin interfaceHttpMetricsRecorder- Parameters:
remoteAddress- The remote peeruri- the requested URI
-