数据库连接池 setMaxIdle 的问题

    dataSouce.setInitialSize(3);  // 初始化连接
    dataSouce.setMaxActive(6);    // 最大连接
    dataSouce.setMaxIdle(3000);   // 最大空闲时间

    dataSouce.setMaxIdle(3000); 
    这个设置的意思是不是,如果一个连接空闲了3000秒,那么就关闭?
    如果初始连接设置为3个 dataSouce.setInitialSize(3); 池中正好有三个连接,是不是也要关闭超过3000秒的空闲连接?

    可能我理解的不对,能不能详细解释一下 dataSouce.setMaxIdle 的含义。