public class ChainedIoHandler extends IoHandlerAdapter
IoHandler which executes an IoHandlerChain
on a messageReceived event.| 构造器和说明 |
|---|
ChainedIoHandler()
Creates a new instance which contains an empty
IoHandlerChain. |
ChainedIoHandler(IoHandlerChain chain)
Creates a new instance which executes the specified
IoHandlerChain on a messageReceived event. |
| 限定符和类型 | 方法和说明 |
|---|---|
IoHandlerChain |
getChain()
Returns the
IoHandlerCommand this handler will use to
handle messageReceived events. |
void |
messageReceived(IoSession session,
java.lang.Object message)
Handles the specified messageReceived event with the
IoHandlerCommand or IoHandlerChain you specified
in the constructor. |
exceptionCaught, messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpenedpublic ChainedIoHandler()
IoHandlerChain.public ChainedIoHandler(IoHandlerChain chain)
IoHandlerChain on a messageReceived event.chain - an IoHandlerChain to executepublic IoHandlerChain getChain()
IoHandlerCommand this handler will use to
handle messageReceived events.public void messageReceived(IoSession session, java.lang.Object message) throws java.lang.Exception
IoHandlerCommand or IoHandlerChain you specified
in the constructor.messageReceived 在接口中 IoHandlermessageReceived 在类中 IoHandlerAdapterjava.lang.Exception