We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a223b0 commit bc160ffCopy full SHA for bc160ff
spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/StoppableTasklet.java
@@ -15,6 +15,7 @@
15
*/
16
package org.springframework.batch.core.step.tasklet;
17
18
+import org.springframework.batch.core.StepExecution;
19
import org.springframework.batch.core.launch.JobOperator;
20
21
/**
@@ -38,4 +39,14 @@ public interface StoppableTasklet extends Tasklet {
38
39
40
void stop();
41
42
+ /**
43
+ * Used to signal that the job should stop, providing access to the current
44
+ * {@link StepExecution} context.
45
+ *
46
+ * @param stepExecution the current {@link StepExecution} context in which the job
47
+ * is being executed
48
+ */
49
+ default void stop(StepExecution stepExecution) {
50
+ stop();
51
+ }
52
}
0 commit comments