Define "enabled" in ScheduledExecutorService
Alan Bateman
alan.bateman at oracle.com
Fri May 2 17:04:19 UTC 2025
On 02/05/2025 16:17, Pavel Rappo wrote:
> I've recently re-read documentation for ScheduledExecutorService. I
> noticed that the documentation uses the term "enabled", but does not
> define it. The semantics of the term feels almost intuitive, but not
> quite.
>
> To check my intuitions, I searched through the package documentation
> and source comments. I found usages of "enabled" in similar context of
> the time-scheduled task execution. Some of those usages are
> descriptions that are close to a proper definition. However, those
> descriptions are scattered through implementations of
> SchedulledExecutorService.
>
> I wonder if it makes sense to properly define "enable"/"enabled" in
> SchedulledExecutorService.
>
As it happens, this came up recently when updating ForkJoinPool to
implement ScheduledExecutorService . FJP class description make it clear
what "enabled" means. It could potentially copied into SES.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/concurrency-discuss/attachments/20250502/1f84027d/attachment.htm>
More information about the concurrency-discuss
mailing list