public class ClientToProxyIoHandler extends AbstractProxyIoHandler
构造器和说明 |
---|
ClientToProxyIoHandler(ServerToProxyIoHandler connectorHandler,
IoConnector connector,
java.net.InetSocketAddress address) |
限定符和类型 | 方法和说明 |
---|---|
void |
sessionOpened(IoSession session)
Invoked when a connection has been opened.
|
messageReceived, sessionClosed, sessionCreated
exceptionCaught, messageSent, sessionIdle
public ClientToProxyIoHandler(ServerToProxyIoHandler connectorHandler, IoConnector connector, java.net.InetSocketAddress address)
public void sessionOpened(IoSession session) throws java.lang.Exception
IoHandler
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 modesl is configured properly.sessionOpened
在接口中 IoHandler
sessionOpened
在类中 IoHandlerAdapter
java.lang.Exception