Class WSPingListener

  • All Implemented Interfaces:
    org.asynchttpclient.ws.WebSocketListener

    public class WSPingListener
    extends java.lang.Object
    implements org.asynchttpclient.ws.WebSocketListener
    Listener for ping messages
    • Constructor Summary

      Constructors 
      Constructor Description
      WSPingListener()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onClose​(org.asynchttpclient.ws.WebSocket websocket)  
      void onClose​(org.asynchttpclient.ws.WebSocket websocket, int code, java.lang.String reason)  
      void onError​(java.lang.Throwable t)  
      void onOpen​(org.asynchttpclient.ws.WebSocket websocket)  
      void onPingFrame​(byte[] payload)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.asynchttpclient.ws.WebSocketListener

        onBinaryFrame, onPongFrame, onTextFrame
    • Constructor Detail

      • WSPingListener

        public WSPingListener()
    • Method Detail

      • onOpen

        public void onOpen​(org.asynchttpclient.ws.WebSocket websocket)
        Specified by:
        onOpen in interface org.asynchttpclient.ws.WebSocketListener
      • onClose

        public void onClose​(org.asynchttpclient.ws.WebSocket websocket)
      • onClose

        public void onClose​(org.asynchttpclient.ws.WebSocket websocket,
                            int code,
                            java.lang.String reason)
        Specified by:
        onClose in interface org.asynchttpclient.ws.WebSocketListener
      • onError

        public void onError​(java.lang.Throwable t)
        Specified by:
        onError in interface org.asynchttpclient.ws.WebSocketListener
      • onPingFrame

        public void onPingFrame​(byte[] payload)
        Specified by:
        onPingFrame in interface org.asynchttpclient.ws.WebSocketListener