@Override
    public void shutdown() throws LifeCycleException {
        super.shutdown();

        if (asyncCreateConnectionExecutor != null) {
            asyncCreateConnectionExecutor.shutdown();
        }

        if (null == this.connTasks || this.connTasks.isEmpty()) {
            return;
        }
        Iterator<String> iter = this.connTasks.keySet().iterator();
        while (iter.hasNext()) {
            String poolKey = iter.next();
            this.removeTask(poolKey);
            iter.remove();
        }
        logger.warn("All connection pool and connections have been removed!");
    }
Construct with parameters.

@param connectionSelectStrategy connection selection strategy
@param connectionFactory connection factory
@param connectionEventHandler connection event handler
@param connectionEventListener connection event listener
src/main/java/com/alipay/remoting/DefaultConnectionManager.java