Interface WebSocketServerMetricsRecorder

All Superinterfaces:
ChannelMetricsRecorder, HttpMetricsRecorder, HttpServerMetricsRecorder
All Known Implementing Classes:
ContextAwareWebSocketServerMetricsRecorder

public interface WebSocketServerMetricsRecorder extends HttpServerMetricsRecorder
Interface for collecting metrics on WebSocket server level.
Since:
1.3.8
Author:
LivingLikeKrillin
  • 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 peer
      uri - the requested URI
      status - the WebSocket handshake status
      time - the time that is spent for the handshake
    • recordWebSocketConnectionDuration

      void recordWebSocketConnectionDuration(SocketAddress remoteAddress, String uri, Duration time)
      Records the duration of the WebSocket connection.
      Parameters:
      remoteAddress - The remote peer
      uri - the requested URI
      time - the duration of the connection