Interface MessageHandler<E>


public interface MessageHandler<E>
A handler interface that DemuxingIoHandler forwards messageReceived events to. You have to register your handler with the type of message you want to get notified using DemuxingIoHandler.addMessageHandler(Class, MessageHandler).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final MessageHandler<Object>
    A MessageHandler that does nothing.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    messageReceived(IoSession session, E message)
    Invoked when the specific type of message is received from the specified session.
  • Field Details

  • Method Details

    • messageReceived

      void messageReceived(IoSession session, E message) throws Exception
      Invoked when the specific type of message is received from the specified session.
      Throws:
      Exception