Skip to content

Commit 9e95c70

Browse files
committed
#4963: Clarify Javadoc for skipLimit with custom SkipPolicy
Signed-off-by: Subin Kim <rla0010101@gmail.com>
1 parent c7aabeb commit 9e95c70

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,14 @@ public FaultTolerantStepBuilder<I, O> retryContextCache(RetryContextCache retryC
305305
}
306306

307307
/**
308-
* Sets the maximum number of failed items to skip before the step fails. Ignored if
309-
* an explicit {@link #skipPolicy(SkipPolicy)} is provided.
310-
* @param skipLimit the skip limit to set. Default is 10.
311-
* @return this for fluent chaining
308+
* Sets the maximum number of failed items to skip before the step fails.
309+
* <p>
310+
* Note: If a custom {@link SkipPolicy} is provided via
311+
* {@link #skipPolicy(SkipPolicy)}, this limit will not be enforced by the step
312+
* directly, but it can be implemented to be honored by the custom policy.
313+
* @param skipLimit the maximum number of failed items to skip.
314+
* @return this for fluent chaining.
315+
* @see SkipPolicy
312316
*/
313317
public FaultTolerantStepBuilder<I, O> skipLimit(int skipLimit) {
314318
this.skipLimit = skipLimit;

0 commit comments

Comments
 (0)