Interface ConnectionObserver

    • Method Detail

      • onDataRead

        void onDataRead​(int size)
        Callback when size bytes are read from the connection.
        Parameters:
        size - size of the data chunk read
      • onDataWrite

        void onDataWrite​(int size)
        Callback when size bytes are written to the connection.
        Parameters:
        size - size of the data chunk written
      • onFlush

        void onFlush()
        Callback when previously written data is flushed to the connection.
      • connectionClosed

        void connectionClosed​(java.lang.Throwable error)
        Callback when the connection is closed due to an error.
        Parameters:
        error - an occurred error
      • connectionClosed

        void connectionClosed()
        Callback when the connection is closed.