public class ClientToProxyIoHandler extends AbstractProxyIoHandler
OTHER_IO_SESSION
构造器和说明 |
---|
ClientToProxyIoHandler(IoConnector connector,
java.net.SocketAddress remoteAddress) |
限定符和类型 | 方法和说明 |
---|---|
void |
sessionOpened(IoSession session)
Invoked when a connection has been opened.
|
messageReceived, sessionClosed, sessionCreated
exceptionCaught, inputClosed, messageSent, sessionIdle
public ClientToProxyIoHandler(IoConnector connector, java.net.SocketAddress remoteAddress)
public void sessionOpened(IoSession session) throws java.lang.Exception
IoHandlerAdapter
IoHandler.sessionCreated(IoSession)
. The biggest difference from
IoHandler.sessionCreated(IoSession)
is that it's invoked from other thread
than an I/O processor thread once thread model is configured properly.sessionOpened
在接口中 IoHandler
sessionOpened
在类中 IoHandlerAdapter
session
- The session being openedjava.lang.Exception
- If we get an exception while processing the open event