BlockingQueue队列自定义超时时间取消线程池任务

上传者: qweasd_asp | 上传时间: 2020-03-14 03:10:47 | 文件大小: 341KB | 文件类型: rar
定义全局线程池,将用户的请求放入自定义队列中,排队等候线程调用,等待超时则自动取消该任务,实现超时可取消的异步任务

文件下载

资源详情

[{"title":"( 26 个子文件 341KB ) BlockingQueue队列自定义超时时间取消线程池任务","children":[{"title":"TestQueue","children":[{"title":".project <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"test","children":[{"title":"filter","children":[{"title":"ThreadPoolFilter.java <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false}],"spread":true},{"title":"servlet","children":[{"title":"ResultDemo.java <span style='color:#111;'> 471B </span>","children":null,"spread":false},{"title":"TestServlet.java <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false},{"title":"FurtureTaskTest.java <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"WebRoot","children":[{"title":"WEB-INF","children":[{"title":"classes","children":[{"title":"com","children":[{"title":"test","children":[{"title":"filter","children":[{"title":"ThreadPoolFilter.class <span style='color:#111;'> 4.01KB </span>","children":null,"spread":false},{"title":"ThreadPoolFilter$1.class <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false}],"spread":true},{"title":"servlet","children":[{"title":"FurtureTaskTest.class <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"TestServlet$1.class <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"TestServlet.class <span style='color:#111;'> 4.31KB </span>","children":null,"spread":false},{"title":"TaskCallable.class <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"TestServlet$TestCallable.class <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"ResultDemo.class <span style='color:#111;'> 996B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"lib","children":[{"title":"log4j-1.2.14.jar <span style='color:#111;'> 358.83KB </span>","children":null,"spread":false}],"spread":true},{"title":"web.xml <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"index.jsp <span style='color:#111;'> 834B </span>","children":null,"spread":false},{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 39B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":"com.genuitec.eclipse.modernweb.common.core.prefs <span style='color:#111;'> 62B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'> 396B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 57B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.component <span style='color:#111;'> 486B </span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'> 564B </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明