Package reactor.netty.http.server
Interface WebSocketServerMetricsRecorder
- All Superinterfaces:
ChannelMetricsRecorder,HttpMetricsRecorder,HttpServerMetricsRecorder
- All Known Implementing Classes:
ContextAwareWebSocketServerMetricsRecorder
Interface for collecting metrics on WebSocket server level.
- Since:
- 1.3.8
- Author:
- LivingLikeKrillin
-
Method Summary
Modifier and TypeMethodDescriptionvoidrecordWebSocketConnectionDuration(SocketAddress remoteAddress, 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.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.HttpMetricsRecorder
incrementErrorsCount, recordDataReceived, recordDataSentMethods inherited from interface reactor.netty.http.server.HttpServerMetricsRecorder
recordDataReceivedTime, recordDataSentTime, recordResponseTime, recordServerConnectionActive, recordServerConnectionInactive, recordStreamClosed, recordStreamOpened
-
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
-
recordWebSocketConnectionDuration
Records the duration of the WebSocket connection.- Parameters:
remoteAddress- The remote peeruri- the requested URItime- the duration of the connection
-