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)