类 StepContextRepeatCallback

    • 方法详细资料

      • doInChunkContext

        public abstract RepeatStatus doInChunkContext​(RepeatContext context,
                                                      ChunkContext chunkContext)
                                               throws java.lang.Exception
        Do the work required for this chunk of the step. The ChunkContext provided is managed by the base class, so that if there is still work to do for the task in hand state can be stored here. In a multi-threaded client, the base class ensures that only one thread at a time can be working on each instance of ChunkContext. Workers should signal that they are finished with a context by removing all the attributes they have added. If a worker does not remove them another thread might see stale state.
        参数:
        context - the current RepeatContext
        chunkContext - the chunk context in which to carry out the work
        返回:
        the repeat status from the execution
        抛出:
        java.lang.Exception - implementations can throw an exception if anything goes wrong