mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
support config maxWaitThread using properties
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user