Class WaitTasklet

  • All Implemented Interfaces:
    org.springframework.batch.core.step.tasklet.StoppableTasklet, org.springframework.batch.core.step.tasklet.Tasklet

    public class WaitTasklet
    extends java.lang.Object
    implements org.springframework.batch.core.step.tasklet.StoppableTasklet, org.springframework.batch.core.step.tasklet.Tasklet
    A tasklet that waits a given amount of time.
    • Constructor Summary

      Constructors 
      Constructor Description
      WaitTasklet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.batch.repeat.RepeatStatus execute​(org.springframework.batch.core.StepContribution sc, org.springframework.batch.core.scope.context.ChunkContext cc)  
      int getWaitTimeSeconds()  
      void setWaitTimeSeconds​(int waitTimeSeconds)  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WaitTasklet

        public WaitTasklet()
    • Method Detail

      • execute

        public org.springframework.batch.repeat.RepeatStatus execute​(org.springframework.batch.core.StepContribution sc,
                                                                     org.springframework.batch.core.scope.context.ChunkContext cc)
                                                              throws java.lang.Exception
        Specified by:
        execute in interface org.springframework.batch.core.step.tasklet.Tasklet
        Throws:
        java.lang.Exception
      • stop

        public void stop()
        Specified by:
        stop in interface org.springframework.batch.core.step.tasklet.StoppableTasklet
      • getWaitTimeSeconds

        public int getWaitTimeSeconds()
      • setWaitTimeSeconds

        public void setWaitTimeSeconds​(int waitTimeSeconds)