org.apache.mina.handler.demux
Interface MessageHandler
public interface MessageHandler
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)
.
- Version:
- $Rev: 436993 $, $Date: 2006-08-26 00:36:56 +0200 (Sat, 26 Aug 2006) $
- Author:
- The Apache Directory Project (mina-dev@directory.apache.org)
Method Summary |
void |
messageReceived(IoSession session,
Object message)
Invoked when the specific type of message is received from the
specified session . |
NOOP
static final MessageHandler NOOP
- A
MessageHandler
that does nothing. This is usefule when
you want to ignore messages of the specific type silently.
messageReceived
void messageReceived(IoSession session,
Object message)
throws Exception
- Invoked when the specific type of message is received from the
specified
session
.
- Throws:
Exception
Copyright © 2004-2009 Apache MINA Project. All Rights Reserved.