Package org.apache.mina.handler.demux
Interface MessageHandler<M>
-
- Type Parameters:
M
- The message type
public interface MessageHandler<M>
A handler interface thatDemuxingIoHandler
forwards messageReceived or messageSent events to. You have to register your handler with the type of the message you want to get notified usingDemuxingIoHandler.addReceivedMessageHandler(Class, MessageHandler)
orDemuxingIoHandler.addSentMessageHandler(Class, MessageHandler)
.- Author:
- Apache MINA Project
-
-
Field Summary
Fields Modifier and Type Field Description static MessageHandler<Object>
NOOP
AMessageHandler
that does nothing.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handleMessage(IoSession session, M message)
Invoked when the specific type of message is received from or sent to the specifiedsession
.
-
-
-
Field Detail
-
NOOP
static final MessageHandler<Object> NOOP
AMessageHandler
that does nothing. This is useful when you want to ignore a message of a specific type silently.
-
-