Skip to content

Commit ac58257

Browse files
committed
Add missing deprecation note
This should have been part of 1ff04d5 Issue #2218
1 parent e708bf2 commit ac58257

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/StepParserStepFactoryBean.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,10 @@ public void setTaskExecutor(TaskExecutor taskExecutor) {
997997
* concurrent processing to prevent thread pools from being overwhelmed. Defaults to
998998
* {@link TaskExecutorRepeatTemplate#DEFAULT_THROTTLE_LIMIT}.
999999
* @param throttleLimit The throttle limit to set.
1000+
* @deprecated since 5.0, scheduled for removal in 6.0. This API is not intended for
1001+
* end users anyway. It is only used by the XML namespace parser.
10001002
*/
1003+
@Deprecated(since = "5.0", forRemoval = true)
10011004
public void setThrottleLimit(Integer throttleLimit) {
10021005
this.throttleLimit = throttleLimit;
10031006
}

spring-batch-core/src/main/java/org/springframework/batch/core/step/factory/SimpleStepFactoryBean.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,11 @@ protected TaskExecutor getTaskExecutor() {
446446
* concurrent processing to prevent thread pools from being overwhelmed. Defaults to
447447
* {@link TaskExecutorRepeatTemplate#DEFAULT_THROTTLE_LIMIT}.
448448
* @param throttleLimit the throttle limit to set.
449+
* @deprecated since 5.0, scheduled for removal in 6.0. Use a pooled
450+
* {@link TaskExecutor} implementation with a limited capacity of its task queue
451+
* instead.
449452
*/
453+
@Deprecated(since = "5.0", forRemoval = true)
450454
public void setThrottleLimit(int throttleLimit) {
451455
this.throttleLimit = throttleLimit;
452456
}

spring-batch-core/src/main/resources/org/springframework/batch/core/configuration/xml/spring-batch.xsd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,8 @@
684684
<xsd:documentation><![CDATA[
685685
This limits the number of tasks queued for concurrent
686686
processing to prevent thread pools from being overwhelmed.
687-
Default is 4.
687+
Default is 4. This is deprecated in favor of using similar
688+
features in TaskExecutor implementations.
688689
]]></xsd:documentation>
689690
</xsd:annotation>
690691
</xsd:attribute>

0 commit comments

Comments
 (0)