public interface MessageHandler<E>
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)
.限定符和类型 | 字段和说明 |
---|---|
static MessageHandler<java.lang.Object> |
NOOP
A
MessageHandler that does nothing. |
限定符和类型 | 方法和说明 |
---|---|
void |
messageReceived(IoSession session,
E message)
Invoked when the specific type of message is received from the
specified
session . |
static final MessageHandler<java.lang.Object> NOOP
MessageHandler
that does nothing. This is usefule when
you want to ignore messages of the specific type silently.