Exemplo n.º 1
0
 /**
  * Creates a new ConnectionHandler object
  *
  * @param sChannel the SocketChannel of the client
  * @param data a reference to a ReactorData object
  */
 private ConnectionHandler(SocketChannel sChannel, ReactorData<T> data, SelectionKey key) {
   _sChannel = sChannel;
   _data = data;
   _protocol = _data.getProtocolMaker().create();
   _tokenizer = _data.getTokenizerMaker().create();
   _skey = key;
 }