org.apache.mina.handler.demux
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).
|
Method Summary |
void |
messageReceived(IoSession session,
E message)
Invoked when the specific type of message is received from the
specified session. |
NOOP
static final MessageHandler<java.lang.Object> NOOP
- A
MessageHandler that does nothing. This is usefule when
you want to ignore messages of the specific type silently.
messageReceived
void messageReceived(IoSession session,
E message)
throws java.lang.Exception
- Invoked when the specific type of message is received from the
specified
session.
- Throws:
java.lang.Exception