Skip to content

Commit 260b451

Browse files
snicolljhoeller
authored andcommitted
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 (cherry picked from commit 6534d00)
1 parent acefd83 commit 260b451

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/asciidoc/index.adoc

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44788,6 +44788,21 @@ element.
4478844788
rejection-policy="CALLER_RUNS"/>
4478944789
----
4479044790

44791+
Finally, the `keep-alive` setting determines the time limit (in seconds) for which threads
44792+
may remain idle before being terminated. If there are more than the core number of threads
44793+
currently in the pool, after waiting this amount of time without processing a task, excess
44794+
threads will get terminated. A time value of zero will cause excess threads to terminate
44795+
immediately after executing a task without remaining follow-up work in the task queue.
44796+
44797+
[source,xml,indent=0]
44798+
[subs="verbatim,quotes"]
44799+
----
44800+
<task:executor
44801+
id="executorWithKeepAlive"
44802+
pool-size="5-25"
44803+
keep-alive="120"/>
44804+
----
44805+
4479144806

4479244807

4479344808
[[scheduling-task-namespace-scheduled-tasks]]
@@ -45340,7 +45355,7 @@ message is surrounded by quotes. Below are the changes that I (the author) make
4534045355

4534145356
public String getMessage() {
4534245357
// change the implementation to surround the message in quotes
45343-
return "'" + this.message + "'"
45358+
return "''" + this.message + "''"
4534445359
}
4534545360

4534645361
public void setMessage(String message) {

0 commit comments

Comments
 (0)