有没有办法为不同的类指定不同的执行器?对于每个异步任务都必须使用一个Executor,这似乎有点限制。
发布于 2012-08-20 22:14:02
发布于 2012-01-06 14:52:50
同一任务执行器类型(池)可以有多个实例。但是你不能有不同的池。
例如
<task:executor id="executor" pool-size="10"/>10个ThreadPoolTaskExecutor实例
或
<task:executor id="executorWithPoolSizeRange"
pool-size="5-25"
queue-capacity="100"/>有关更多详细信息,请参阅spring Reference @see Spring Reference Chapter 25 Task Execution and Scheduling
https://stackoverflow.com/questions/8751366
复制相似问题