标签:多线程
1)
<bean id="replayParallelConsumerTaskExecutor"
class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
<property name="corePoolSize" value="${frcst.replay.parallel.thread.size}"/>
<property name="maxPoolSize" value="${frcst.replay.parallel.thread.size}"/>
<property name="queueCapacity" value="1"/>
</bean>
for(int i=0;i<parallelThreadSize;i++){
this.replayParallelConsumerTaskExecutor.execute(new AdjustmentReplayRequestConsumer(...)); }[consumer exteds from Thread ]
2)
标签:多线程
原文地址:http://2828408.blog.51cto.com/2818408/1835636