类 SleepingTasklet

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      RepeatStatusexecute​(StepContribution contribution, ChunkContext chunkContext)
      Given the current context in the form of a step contribution, do whatever is necessary to process this unit inside a transaction.
      voidsetMillisToSleep​(long millisToSleep) 
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • execute

        public RepeatStatus execute​(StepContribution contribution,
                                    ChunkContext chunkContext)
                             throws java.lang.Exception
        从接口复制的说明: Tasklet
        Given the current context in the form of a step contribution, do whatever is necessary to process this unit inside a transaction. Implementations return RepeatStatus.FINISHED if finished. If not they return RepeatStatus.CONTINUABLE. On failure throws an exception.
        指定者:
        execute 在接口中 Tasklet
        参数:
        contribution - mutable state to be passed back to update the current step execution
        chunkContext - attributes shared between invocations but not between restarts
        返回:
        an RepeatStatus indicating whether processing is continuable. Returning null is interpreted as RepeatStatus.FINISHED
        抛出:
        java.lang.Exception - thrown if error occurs during execution.