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
+13
Original file line number
Diff line number
Diff line change
@@ -77,12 +77,25 @@ public void setThreadNamePrefix(String threadNamePrefix) {
77
77
78
78
publicstaticclassSimple {
79
79
80
+
/**
81
+
* Whether to reject tasks when the concurrency limit has been reached.
82
+
*/
83
+
privatebooleanrejectTasksWhenLimitReached;
84
+
80
85
/**
81
86
* Set the maximum number of parallel accesses allowed. -1 indicates no
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
+45-18
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 {
@@ -49,6 +50,8 @@ public class SimpleAsyncTaskExecutorBuilder {
49
50
50
51
privatefinalStringthreadNamePrefix;
51
52
53
+
privatefinalbooleanrejectTasksWhenLimitReached;
54
+
52
55
privatefinalIntegerconcurrencyLimit;
53
56
54
57
privatefinalTaskDecoratortaskDecorator;
@@ -58,14 +61,15 @@ 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