support config maxWaitThread using properties

This commit is contained in:
高铁
2016-01-09 12:17:08 +08:00
parent 219d76927b
commit 739645fbf1
@@ -266,6 +266,17 @@ public class DruidDataSource extends DruidAbstractDataSource
}
}
}
{
String property = properties.getProperty("druid.maxWaitThreadCount");
if (property != null && property.length() > 0) {
try {
int value = Integer.parseInt(property);
this.setMaxWaitThreadCount(value);
} catch (NumberFormatException e) {
LOG.error("illegal property 'druid.maxWaitThreadCount'", e);
}
}
}
}
public boolean isUseGlobalDataSourceStat() {