Package 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).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MessageHandler<Object>AMessageHandlerthat does nothing. -
Method Summary
Modifier and TypeMethodDescriptionvoidmessageReceived(IoSession session, E message) Invoked when the specific type of message is received from the specifiedsession.
-
Field Details
-
NOOP
AMessageHandlerthat does nothing. This is usefule when you want to ignore messages of the specific type silently.
-
-
Method Details
-
messageReceived
Invoked when the specific type of message is received from the specifiedsession.- Throws:
Exception
-