Interface MessageHandler<M>

    • Field Detail

      • NOOP

        static final MessageHandler<java.lang.Object> NOOP
        A MessageHandler that does nothing. This is useful when you want to ignore a message of a specific type silently.
    • Method Detail

      • handleMessage

        void handleMessage​(IoSession session,
                           M message)
                    throws java.lang.Exception
        Invoked when the specific type of message is received from or sent to the specified session.
        Parameters:
        session - the associated IoSession
        message - the message to decode. Its type is set by the implementation
        Throws:
        java.lang.Exception - if there is an error during the message processing