09052102:对这个资产展示使用线程池的方法去做,第五次优化代码
parent
b8c1e65edc
commit
dfa2e92b93
|
@ -107,9 +107,9 @@ public class MysqlPool implements BasePool<Connection>{
|
|||
return mysqlConn;
|
||||
}
|
||||
|
||||
if ((System.currentTimeMillis() - startTime)>this.etlDataScore.getMaxWaitTime()){
|
||||
throw new MysqlConnException("连接超时!");
|
||||
}
|
||||
// if ((System.currentTimeMillis() - startTime)>this.etlDataScore.getMaxWaitTime()){
|
||||
// throw new MysqlConnException("连接超时!");
|
||||
// }
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue