Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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)`.

Version:
  $Rev: 555855 $, $Date: 2007-07-13 05:19:00 +0200 (Fri, 13 Jul 2007) $
Author:
  The Apache Directory Project (mina-dev@directory.apache.org)

Field Summary
`static MessageHandler<Object>` | `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 Detail

### NOOP

    static final MessageHandler<Object> NOOP

  A `MessageHandler` that does nothing. This is usefule when you want to ignore messages of the specific type silently.

Method Detail

### messageReceived

    void messageReceived(IoSession session,
                         E message)
                         throws Exception

  Invoked when the specific type of message is received from the specified `session`.

  Throws:
    `Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2008 Apache MINA Project. All Rights Reserved.