支持MaxWaitThreadCount配置项

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@13 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-05-11 08:59:45 +00:00
parent 99ee3e31f3
commit 991a76c38c
@@ -74,7 +74,7 @@ public class DruidDataSource extends DruidDataAbstractSource implements DruidDat
}
try {
int maxWaitThreadCount = getMaxWaitThreadCount();
final int maxWaitThreadCount = getMaxWaitThreadCount();
if (maxWaitThreadCount > 0) {
if (lock.getQueueLength() > maxWaitThreadCount) {
throw new SQLException("maxWaitThreadCount " + maxWaitThreadCount + ", current wait Thread count "