public abstract class AbstractProxyIoHandler extends IoHandlerAdapter
IoHandler
classes which handle
proxied connections.限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
OTHER_IO_SESSION |
构造器和说明 |
---|
AbstractProxyIoHandler() |
限定符和类型 | 方法和说明 |
---|---|
void |
messageReceived(IoSession session,
java.lang.Object message)
Invoked when a message is received.
|
void |
sessionClosed(IoSession session)
Invoked when a connection is closed.
|
void |
sessionCreated(IoSession session)
Invoked from an I/O processor thread when a new connection has been created.
|
exceptionCaught, inputClosed, messageSent, sessionIdle, sessionOpened
public void sessionCreated(IoSession session) throws java.lang.Exception
sessionCreated
在接口中 IoHandler
sessionCreated
在类中 IoHandlerAdapter
session
- The session being createdjava.lang.Exception
- If we get an exception while processing the create eventpublic void sessionClosed(IoSession session) throws java.lang.Exception
sessionClosed
在接口中 IoHandler
sessionClosed
在类中 IoHandlerAdapter
session
- The session being closedjava.lang.Exception
- If we get an exception while processing the close eventpublic void messageReceived(IoSession session, java.lang.Object message) throws java.lang.Exception
messageReceived
在接口中 IoHandler
messageReceived
在类中 IoHandlerAdapter
session
- The session that is receiving a messagemessage
- The received messagejava.lang.Exception
- If we get an exception while processing the received message