You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/task/TaskExecutionProperties.java
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,11 @@ public static class Simple {
83
83
*/
84
84
privateIntegerconcurrencyLimit;
85
85
86
+
/**
87
+
* Specify whether to reject tasks when the concurrency limit has been reached.
88
+
*/
89
+
privatebooleanrejectTasksWhenLimitReached;
90
+
86
91
publicIntegergetConcurrencyLimit() {
87
92
returnthis.concurrencyLimit;
88
93
}
@@ -91,6 +96,14 @@ public void setConcurrencyLimit(Integer concurrencyLimit) {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/task/TaskExecutorConfigurations.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/task/TaskExecutionAutoConfigurationTests.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/task/SimpleAsyncTaskExecutorBuilder.java
+28-9Lines changed: 28 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@
41
41
* @author Stephane Nicoll
42
42
* @author Filip Hrisafov
43
43
* @author Moritz Halbritter
44
+
* @author Yanming Zhou
44
45
* @since 3.2.0
45
46
*/
46
47
publicclassSimpleAsyncTaskExecutorBuilder {
@@ -57,19 +58,22 @@ public class SimpleAsyncTaskExecutorBuilder {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/test/java/org/springframework/boot/task/SimpleAsyncTaskExecutorBuilderTests.java
0 commit comments