code: private void registerChannel(Selector selector, SelectableChannel channel, Operation ops) {
  		if (channel == null) {
  			return;
  		}
  
  		try {
  			channel.configureBlocking(false);
  			// 注册通道
  			channel.register(selector, ops.getValue());
  		} catch (IOException e) {
  			throw new IORuntimeException(e);
  		}
  	}
docs: 注册通道到指定Selector上
  
  @param selector Selector
  @param channel 通道
  @param ops 注册的通道监听类型