public interface MessageHandler
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)
.Modifier and Type | Field and Description |
---|---|
static MessageHandler |
NOOP
A
MessageHandler that does nothing. |
Modifier and Type | Method and Description |
---|---|
void |
messageReceived(IoSession session,
java.lang.Object message)
Invoked when the specific type of message is received from the
specified
session . |
static final MessageHandler NOOP
MessageHandler
that does nothing. This is usefule when
you want to ignore messages of the specific type silently.void messageReceived(IoSession session, java.lang.Object message) throws java.lang.Exception
session
.java.lang.Exception
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.