Class WebSocketMetricAdapter

  • All Implemented Interfaces:
    org.eclipse.jetty.websocket.api.WebSocketConnectionListener, org.eclipse.jetty.websocket.api.WebSocketListener

    public class WebSocketMetricAdapter
    extends org.eclipse.jetty.websocket.api.WebSocketAdapter
    Adapter for WebSocket metric request and response.
    • Constructor Detail

      • WebSocketMetricAdapter

        public WebSocketMetricAdapter()
    • Method Detail

      • onWebSocketConnect

        public final void onWebSocketConnect​(org.eclipse.jetty.websocket.api.Session sess)
        Specified by:
        onWebSocketConnect in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
        Overrides:
        onWebSocketConnect in class org.eclipse.jetty.websocket.api.WebSocketAdapter
      • onWebSocketClose

        public final void onWebSocketClose​(int statusCode,
                                           String reason)
        Specified by:
        onWebSocketClose in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
        Overrides:
        onWebSocketClose in class org.eclipse.jetty.websocket.api.WebSocketAdapter
      • onWebSocketError

        public final void onWebSocketError​(Throwable throwable)
        Specified by:
        onWebSocketError in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
        Overrides:
        onWebSocketError in class org.eclipse.jetty.websocket.api.WebSocketAdapter
      • onWebSocketText

        public final void onWebSocketText​(String text)
        Specified by:
        onWebSocketText in interface org.eclipse.jetty.websocket.api.WebSocketListener
        Overrides:
        onWebSocketText in class org.eclipse.jetty.websocket.api.WebSocketAdapter