Package org.apache.mina.handler.demux
Interface MessageHandler<E>
-
public interface MessageHandler<E>
A handler interface thatDemuxingIoHandler
forwardsmessageReceived
events to. You have to register your handler with the type of message you want to get notified usingDemuxingIoHandler.addMessageHandler(Class, MessageHandler)
.
-
-
Field Summary
Fields Modifier and Type Field Description static MessageHandler<java.lang.Object>
NOOP
AMessageHandler
that does nothing.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
messageReceived(IoSession session, E message)
Invoked when the specific type of message is received from the specifiedsession
.
-
-
-
Field Detail
-
NOOP
static final MessageHandler<java.lang.Object> NOOP
AMessageHandler
that does nothing. This is usefule when you want to ignore messages of the specific type silently.
-
-