code: public void connect() throws Exception {
  
  		// Create selector
  		disconnect();
  		selector = Selector.open();
  
  		// Start selector's loop
  		executor = Executors.newSingleThreadExecutor();
  		executor.execute(this);
  	}
docs: --- CONNECT ---