Package se.ikama.bauta.batch.tasklet
Class WaitTasklet
- java.lang.Object
-
- se.ikama.bauta.batch.tasklet.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.TaskletA 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.RepeatStatusexecute(org.springframework.batch.core.StepContribution sc, org.springframework.batch.core.scope.context.ChunkContext cc)intgetWaitTimeSeconds()voidsetWaitTimeSeconds(int waitTimeSeconds)voidstop()
-
-
-
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:
executein interfaceorg.springframework.batch.core.step.tasklet.Tasklet- Throws:
java.lang.Exception
-
stop
public void stop()
- Specified by:
stopin interfaceorg.springframework.batch.core.step.tasklet.StoppableTasklet
-
getWaitTimeSeconds
public int getWaitTimeSeconds()
-
setWaitTimeSeconds
public void setWaitTimeSeconds(int waitTimeSeconds)
-
-