private void accept(SelectionKey key,Boolean isClusters) throws IOException {
		// For an accept to be pending the channel must be a server socket channel.
		ServerSocketChannel serverSocketChannel = (ServerSocketChannel) key.channel();

		// Accept the connection and make it non-blocking
		SocketChannel socketChannel = serverSocketChannel.accept();
		socketChannel.configureBlocking(false);// 设置为非阻塞式
		
		
		socketChannel.socket().setReceiveBufferSize(this.sockectReceiveBufferSize * 1024);// 设置接收缓存
		socketChannel.socket().setSendBufferSize(this.sockectSendBufferSize * 1024);// 设置发送缓存
		
		socketChannel.socket().setSoTimeout(0);
		
		socketChannel.socket().setTcpNoDelay(true);
		if(keepConnect){//使用长连接，保持连接状态
			socketChannel.socket().setKeepAlive(true);
		}
		
		// 将客户端sockect通道注册到指定的输入监听线程上
		if(isClusters){// 集群请求通道注册
			this.readWriteMonitors.get(Math.abs(this.connectIndex.getAndIncrement()) 
			     % this.readWriteMonitors.size()).registeClusters(socketChannel);
		}else{// 业务请求通道注册
			this.readWriteMonitors.get(Math.abs(this.connectIndex.getAndIncrement()) 
			     % this.readWriteMonitors.size()).registe(socketChannel);
		}
	}