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> AMessageHandler
that does nothing. -
Method Summary
Modifier and TypeMethodDescriptionvoid
messageReceived
(IoSession session, E message) Invoked when the specific type of message is received from the specifiedsession
.
-
Field Details
-
NOOP
AMessageHandler
that 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
-