Interface WebSocketMetricsInterceptorProducer.WebSocketMetricsInterceptor

Enclosing interface:
WebSocketMetricsInterceptorProducer

public static interface WebSocketMetricsInterceptorProducer.WebSocketMetricsInterceptor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a WebSocket connection is opened.
    void
    Called when a WebSocket connection is opened.
    void
    Called when an opening of a WebSocket connection failed.
    void
    onError(String route)
    Called when errors described by the 'OnError' annotation occur.
    void
    onMessageReceived(byte[] data, String route)
    Called every time an inbound binary or text message is received.
    void
    onMessageSent(byte[] data, String route)
    Called every time an outbound binary or text message is sent.
  • Method Details

    • onError

      void onError(String route)
      Called when errors described by the 'OnError' annotation occur.
      Parameters:
      route - endpoint route
    • onMessageSent

      void onMessageSent(byte[] data, String route)
      Called every time an outbound binary or text message is sent.
      Parameters:
      data - sent data
      route - endpoint route
    • onMessageReceived

      void onMessageReceived(byte[] data, String route)
      Called every time an inbound binary or text message is received.
      Parameters:
      data - received data
      route - endpoint route
    • onConnectionOpened

      void onConnectionOpened(String route)
      Called when a WebSocket connection is opened.
      Parameters:
      route - endpoint route
    • onConnectionOpeningFailed

      void onConnectionOpeningFailed(String route)
      Called when an opening of a WebSocket connection failed.
      Parameters:
      route - endpoint route
    • onConnectionClosed

      void onConnectionClosed(String route)
      Called when a WebSocket connection is opened.
      Parameters:
      route - endpoint route