Package reactor.netty.http.client
Interface WebSocketClientMetricsRecorder
- All Superinterfaces:
ChannelMetricsRecorder,HttpClientMetricsRecorder,HttpMetricsRecorder
- All Known Implementing Classes:
ContextAwareWebSocketClientMetricsRecorder
Interface for collecting metrics on WebSocket client level.
- Since:
- 1.3.7
- Author:
- LivingLikeKrillin
-
Method Summary
Modifier and TypeMethodDescriptionvoidrecordWebSocketConnectionDuration(SocketAddress remoteAddress, String uri, Duration time) Records the duration of the WebSocket connection.default voidrecordWebSocketConnectionDuration(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, Duration time) Records the duration of the WebSocket connection.voidrecordWebSocketHandshakeTime(SocketAddress remoteAddress, String uri, String status, Duration time) Records the time that is spent for the WebSocket handshake.default voidrecordWebSocketHandshakeTime(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, String status, Duration time) Records the time that is spent for the WebSocket handshake.Methods inherited from interface reactor.netty.channel.ChannelMetricsRecorder
incrementErrorsCount, incrementErrorsCount, recordConnectTime, recordConnectTime, recordDataReceived, recordDataReceived, recordDataSent, recordDataSent, recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened, recordTlsHandshakeTime, recordTlsHandshakeTimeMethods inherited from interface reactor.netty.http.client.HttpClientMetricsRecorder
incrementErrorsCount, recordDataReceived, recordDataReceivedTime, recordDataReceivedTime, recordDataSent, recordDataSentTime, recordDataSentTime, recordResponseTime, recordResponseTimeMethods inherited from interface reactor.netty.http.HttpMetricsRecorder
incrementErrorsCount, recordDataReceived, recordDataSent
-
Method Details
-
recordWebSocketHandshakeTime
void recordWebSocketHandshakeTime(SocketAddress remoteAddress, String uri, String status, Duration time) Records the time that is spent for the WebSocket handshake.- Parameters:
remoteAddress- The remote peeruri- the requested URIstatus- the WebSocket handshake statustime- the time that is spent for the handshake
-
recordWebSocketHandshakeTime
default void recordWebSocketHandshakeTime(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, String status, Duration time) Records the time that is spent for the WebSocket handshake.- Parameters:
remoteAddress- The remote peerproxyAddress- the proxy addressuri- the requested URIstatus- the WebSocket handshake statustime- the time that is spent for the handshake
-
recordWebSocketConnectionDuration
Records the duration of the WebSocket connection.- Parameters:
remoteAddress- The remote peeruri- the requested URItime- the duration of the connection
-
recordWebSocketConnectionDuration
default void recordWebSocketConnectionDuration(SocketAddress remoteAddress, SocketAddress proxyAddress, String uri, Duration time) Records the duration of the WebSocket connection.- Parameters:
remoteAddress- The remote peerproxyAddress- the proxy addressuri- the requested URItime- the duration of the connection
-