@Override
    public Map<String, List<Connection>> getAll() {
        Map<String, List<Connection>> allConnections = new HashMap<String, List<Connection>>();
        for (Map.Entry<String, RunStateRecordedFutureTask<ConnectionPool>> entry : this
            .getConnPools().entrySet()) {
            ConnectionPool pool = FutureTaskUtil.getFutureTaskResult(entry.getValue(), logger);
            if (null != pool) {
                allConnections.put(entry.getKey(), pool.getAll());
            }
        }
        return allConnections;
    }
Get all connections of all poolKey.

@return a map with poolKey as key and a list of connections in ConnectionPool as value
src/main/java/com/alipay/remoting/DefaultConnectionManager.java