Skip to content

Commit

Permalink
Document limited support for lifecycle management
Browse files Browse the repository at this point in the history
Closes gh-33780
  • Loading branch information
jhoeller committed Oct 28, 2024
1 parent 94d46eb commit 323de12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@
* but rather just the hand-off to an execution thread.</b> As a consequence,
* a {@link ScheduledFuture} handle (e.g. from {@link #schedule(Runnable, Instant)})
* represents that hand-off rather than the actual completion of the provided task
* (or series of repeated tasks).
* (or series of repeated tasks). Also, this scheduler participates in lifecycle
* management to a limited degree only, stopping trigger firing and fixed-delay
* task execution but not stopping the execution of handed-off tasks.
*
* <p>As an alternative to the built-in thread-per-task capability, this scheduler
* can also be configured with a separate target executor for scheduled task
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
* executing a large number of short-lived tasks. Alternatively, on JDK 21,
* consider setting {@link #setVirtualThreads} to {@code true}.
*
* <p><b>NOTE: This executor does not participate in context-level lifecycle
* management.</b> Tasks on handed-off execution threads cannot be centrally
* stopped and restarted; if such tight lifecycle management is necessary,
* consider a common {@code ThreadPoolTaskExecutor} setup instead.
*
* @author Juergen Hoeller
* @since 2.0
* @see #setVirtualThreads
Expand Down

0 comments on commit 323de12

Please sign in to comment.