code: public synchronized void shutdown() {
  		if (!this.poolShuttingDown) {
  			logger.info("开始关闭thrift连接池...");
  			this.poolShuttingDown = true;
  			this.shutdownStackTrace = captureStackTrace("开始关闭thrift连接池");
  
  			TaskEngine.getInstance().shutdown();
  
  			this.asyncExecutor.shutdownNow();
  
  			try {
  				this.asyncExecutor.awaitTermination(5, TimeUnit.SECONDS);
  
  			} catch (InterruptedException e) {
  				// do nothing
  			}
  
  			this.connectionStrategy.terminateAllConnections();
  			logger.info("关闭thrift连接池完成");
  		}
  	}
docs: 关闭连接池的方法