Class OnClose

  • All Implemented Interfaces:
    OnClose

    public class OnClose
    extends java.lang.Object
    implements OnClose
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run​(org.java_websocket.WebSocket ws, int code, java.lang.String reason, boolean remote)
      Called after the websocket connection has been closed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • run

        public void run​(org.java_websocket.WebSocket ws,
                        int code,
                        java.lang.String reason,
                        boolean remote)
                 throws OpenemsException
        Description copied from interface: OnClose
        Called after the websocket connection has been closed.
        Specified by:
        run in interface OnClose
        Parameters:
        ws - the WebSocket
        code - the close code
        reason - the close reason
        remote - Returns whether or not the closing of the connection was initiated by the remote host
        Throws:
        OpenemsException - on error