Interface SingleSessionIoHandler

    • Method Detail

      • sessionCreated

        void sessionCreated()
                     throws java.lang.Exception
        Deprecated.
        Invoked when the session is created. Initialize default socket parameters and user-defined attributes here.
        Throws:
        java.lang.Exception - If the session can't be created
        See Also:
        IoHandler.sessionCreated(IoSession)
      • sessionOpened

        void sessionOpened()
                    throws java.lang.Exception
        Deprecated.
        Invoked when the connection is opened. This method is not invoked if the transport type is UDP.
        Throws:
        java.lang.Exception - If the session can't be opened
        See Also:
        IoHandler.sessionOpened(IoSession)
      • sessionClosed

        void sessionClosed()
                    throws java.lang.Exception
        Deprecated.
        Invoked when the connection is closed. This method is not invoked if the transport type is UDP.
        Throws:
        java.lang.Exception - If the session can't be closed
        See Also:
        IoHandler.sessionClosed(IoSession)
      • sessionIdle

        void sessionIdle​(IdleStatus status)
                  throws java.lang.Exception
        Deprecated.
        Invoked when the connection is idle. Refer to IdleStatus. This method is not invoked if the transport type is UDP.
        Parameters:
        status - the type of idleness
        Throws:
        java.lang.Exception - If the idle event can't be handled
        See Also:
        IoHandler.sessionIdle(IoSession, IdleStatus)
      • exceptionCaught

        void exceptionCaught​(java.lang.Throwable cause)
                      throws java.lang.Exception
        Deprecated.
        Invoked when any exception is thrown by user IoHandler implementation or by MINA. If cause is instanceof IOException, MINA will close the connection automatically.
        Parameters:
        cause - the caught exception
        Throws:
        java.lang.Exception - If the exception can't be handled
        See Also:
        IoHandler.exceptionCaught(IoSession, Throwable)
      • inputClosed

        void inputClosed​(IoSession session)
        Deprecated.
        Invoked when a half-duplex connection is closed
        Parameters:
        session - The current session
      • messageReceived

        void messageReceived​(java.lang.Object message)
                      throws java.lang.Exception
        Deprecated.
        Invoked when protocol message is received. Implement your protocol flow here.
        Parameters:
        message - the received message
        Throws:
        java.lang.Exception - If the received message can't be processed
        See Also:
        IoHandler.messageReceived(IoSession, Object)
      • messageSent

        void messageSent​(java.lang.Object message)
                  throws java.lang.Exception
        Deprecated.
        Invoked when protocol message that user requested by IoSession.write(Object) is sent out actually.
        Parameters:
        message - the sent message
        Throws:
        java.lang.Exception - If the sent message can't be processed
        See Also:
        IoHandler.messageSent(IoSession, Object)