File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -47654,6 +47654,20 @@ element.
47654
47654
----
47655
47655
47656
47656
47657
+ Finally, the `keep-alive` setting determines the time limit (in seconds) for which threads
47658
+ may remain idle before being terminated. If there are more than the core number of threads
47659
+ currently in the pool, after waiting this amount of time without processing a task, excess
47660
+ threads will be terminated. A time value of zero will cause excess threads to terminate
47661
+ immediately after executing tasks.
47662
+
47663
+ [source,xml,indent=0]
47664
+ [subs="verbatim,quotes"]
47665
+ ----
47666
+ <task:executor
47667
+ id="executorWithKeepAlive"
47668
+ pool-size="5-25"
47669
+ keep-alive="120"/>
47670
+ ----
47657
47671
47658
47672
[[scheduling-task-namespace-scheduled-tasks]]
47659
47673
==== The 'scheduled-tasks' element
You can’t perform that action at this time.
0 commit comments