Interface OnClose

  • All Known Implementing Classes:
    OnClose, OnClose, OnClose, OnClose
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface OnClose
    • Method Summary

      All Methods Instance Methods Abstract 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.
    • Method Detail

      • run

        void run​(org.java_websocket.WebSocket ws,
                 int code,
                 java.lang.String reason,
                 boolean remote)
          throws OpenemsException
        Called after the websocket connection has been closed.
        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
        OpenemsException - on error