public class TimestampFileTasklet
extends java.lang.Object
implements org.springframework.batch.core.step.tasklet.Tasklet
Tasklet
implementation
that writes the current timestamp to a file.Constructor and Description |
---|
TimestampFileTasklet(java.lang.String fileName,
java.lang.String directory,
java.lang.String fileExtension,
java.lang.String format) |
Modifier and Type | Method and Description |
---|---|
org.springframework.batch.repeat.RepeatStatus |
execute(org.springframework.batch.core.StepContribution contribution,
org.springframework.batch.core.scope.context.ChunkContext chunkContext) |
public TimestampFileTasklet(java.lang.String fileName, java.lang.String directory, java.lang.String fileExtension, java.lang.String format)
public org.springframework.batch.repeat.RepeatStatus execute(org.springframework.batch.core.StepContribution contribution, org.springframework.batch.core.scope.context.ChunkContext chunkContext) throws java.io.IOException
execute
in interface org.springframework.batch.core.step.tasklet.Tasklet
java.io.IOException