Interface WebSocketClientMetricsRecorder

All Superinterfaces:
ChannelMetricsRecorder, HttpClientMetricsRecorder, HttpMetricsRecorder
All Known Implementing Classes:
ContextAwareWebSocketClientMetricsRecorder

public interface WebSocketClientMetricsRecorder extends HttpClientMetricsRecorder
Interface for collecting metrics on WebSocket client level.
Since:
1.3.7
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
    • 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 peer
      proxyAddress - the proxy address
      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
    • recordWebSocketConnectionDuration

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