public interface MessageHandler<E>
DemuxingIoHandler forwards
messageReceived or messageSent events to. You have to
register your handler with the type of the message you want to get notified
using DemuxingIoHandler.addReceivedMessageHandler(Class, MessageHandler)
or DemuxingIoHandler.addSentMessageHandler(Class, MessageHandler).| Modifier and Type | Field and Description |
|---|---|
static MessageHandler<Object> |
NOOP
A
MessageHandler that does nothing. |
| Modifier and Type | Method and Description |
|---|---|
void |
handleMessage(IoSession session,
E message)
Invoked when the specific type of message is received from or sent to
the specified
session. |
static final MessageHandler<Object> NOOP
MessageHandler that does nothing. This is useful when
you want to ignore a message of a specific type silently.