Interface IOEventHandler

    • Method Detail

      • connected

        void connected​(IOSession session)
                throws java.io.IOException
        Triggered after the given session has been just created.
        Parameters:
        session - the I/O session.
        Throws:
        java.io.IOException
      • inputReady

        void inputReady​(IOSession session,
                        java.nio.ByteBuffer src)
                 throws java.io.IOException
        Triggered when the given session has input pending.
        Parameters:
        session - the I/O session.
        Throws:
        java.io.IOException
      • outputReady

        void outputReady​(IOSession session)
                  throws java.io.IOException
        Triggered when the given session is ready for output.
        Parameters:
        session - the I/O session.
        Throws:
        java.io.IOException
      • timeout

        void timeout​(IOSession session,
                     Timeout timeout)
              throws java.io.IOException
        Triggered when the given session has timed out.
        Parameters:
        session - the I/O session.
        timeout - the timeout.
        Throws:
        java.io.IOException
      • exception

        void exception​(IOSession session,
                       java.lang.Exception cause)
        Triggered when the given session throws a exception.
        Parameters:
        session - the I/O session.
      • disconnected

        void disconnected​(IOSession session)
        Triggered when the given session has been terminated.
        Parameters:
        session - the I/O session.