Package org.apache.mina.handler.demux
Interface MessageHandler<E>
-
public interface MessageHandler<E>A handler interface thatDemuxingIoHandlerforwardsmessageReceivedevents 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>NOOPAMessageHandlerthat does nothing.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmessageReceived(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
AMessageHandlerthat does nothing. This is usefule when you want to ignore messages of the specific type silently.
-
-