摘要:
使用threadpoolExecutor,主要是任务的提交的执行和获取结果。提交任务的方法有:1、submit2、execute3、queue的add其中1和2的使用必须是threadpoolExecutor的实例,直接提交。两种做法:1、暴露threadpool实例,2、封装threadpool,... 阅读全文
posted @ 2014-06-09 16:15
leeying
阅读(1070)
评论(0)
推荐(0)
摘要:
获取资源timeout:异常信息如下:Caused by: java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.[Cause: com.mchange.v2.resourcepool... 阅读全文
posted @ 2014-06-09 09:55
leeying
阅读(4192)
评论(0)
推荐(0)
浙公网安备 33010602011771号