question: public ChannelEntry newConnection ( ReadSelectorThread readHandler , SelectionKey key ) { SocketChannel channel = ( SocketChannel ) key . channel ( ) ; WriteSelectorThread writeHandler = _selectorManager . getWriteHandler ( key . channel ( ) ) ; Socket socket = channel . socket ( ) ; InetSocketAddress socketAddress = ( InetSocketAddress ) ( socket == null ? null : socket . getRemoteSocketAddress ( ) ) ; ChannelEntry channelEntry = new ChannelEntry ( writeHandler , readHandler , key , socketAddress , this ) ; m_Channels . put ( channel , channelEntry ) ; if ( socketAddress != null ) { _clientToChannel . put ( socketAddress , channelEntry ) ; } if ( _logger . isLoggable ( Level . FINE ) ) _logger . log ( Level . FINE , "Connected new client from [" + channelEntry . getClientEndPointAddress ( ) + "] endpoint." ) ; return channelEntry ; }
target:  Called by the ConnMgr thread when a new connection is created.