如何以特定间隔重新启动tasklet

时间:2017-07-10 19:43:03

标签: java spring multithreading

我有春季批处理工作如下:

   <job id="messageConsumerJob"  xmlns="http://www.springframework.org/schema/batch">
    <split id="split1" task-executor="taskExecutor">
        <flow>
            <batch:step id="messageConsumerStep">
                <batch:partition step="receiverStep" partitioner="messageConsumer">
                    <batch:handler grid-size="10" task-executor="taskExecutor" />
                </batch:partition>
            </batch:step>   
        </flow>
        <flow>
            <step id="publishStep">
                <tasklet ref="messagePublish" />
            </step>
        </flow>
    </split>
</job>

我想每2天重启一次接收器步骤。

0 个答案:

没有答案