Skip to content

Commit 6534d00

Browse files
committed
Add documentation for the keep-alive flag
This commit updates the documentation of the task:executor element to reference the keep-alive flag. Issue: SPR-12407
1 parent 1fff631 commit 6534d00

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/asciidoc/index.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47654,6 +47654,20 @@ element.
4765447654
----
4765547655

4765647656

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+
----
4765747671

4765847672
[[scheduling-task-namespace-scheduled-tasks]]
4765947673
==== The 'scheduled-tasks' element

0 commit comments

Comments
 (0)