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

static MessageHandler
NOOP
A MessageHandler that does nothing.

Method Summary

void
messageReceived(IoSession session, E message)
Invoked when the specific type of message is received from the specified session.

Field Details