Define "enabled" in ScheduledExecutorService

Pavel Rappo pavel.rappo at gmail.com
Fri May 2 17:46:51 UTC 2025


Thanks, Alan. That sounds like a plan. Shall I create a corresponding JBS
issue?

On Fri 2 May 2025 at 18:04, Alan Bateman <alan.bateman at oracle.com> wrote:

> On 02/05/2025 16:17, Pavel Rappo wrote:I've recently re-read documentation
> for ScheduledExecutorService. I
>
> 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/9c745846/attachment-0001.htm>


More information about the concurrency-discuss mailing list