Class ChainedIoHandler

    • Constructor Detail

      • ChainedIoHandler

        public ChainedIoHandler()
        Creates a new instance which contains an empty IoHandlerChain.
      • ChainedIoHandler

        public ChainedIoHandler​(IoHandlerChain chain)
        Creates a new instance which executes the specified IoHandlerChain on a messageReceived event.
        Parameters:
        chain - an IoHandlerChain to execute
    • Method Detail

      • messageReceived

        public void messageReceived​(IoSession session,
                                    java.lang.Object message)
                             throws java.lang.Exception
        Handles the specified messageReceived event with the IoHandlerCommand or IoHandlerChain you specified in the constructor.
        Specified by:
        messageReceived in interface IoHandler
        Overrides:
        messageReceived in class IoHandlerAdapter
        Parameters:
        session - The session that is receiving a message
        message - The received message
        Throws:
        java.lang.Exception - If we get an exception while processing the received message