You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Joerg Hoh (Jira)" <ji...@apache.org> on 2022/01/05 10:24:00 UTC

[jira] [Created] (SLING-11040) Thread pools should be available as services

Joerg Hoh created SLING-11040:
---------------------------------

             Summary: Thread pools should be available as services
                 Key: SLING-11040
                 URL: https://issues.apache.org/jira/browse/SLING-11040
             Project: Sling
          Issue Type: Improvement
          Components: Commons
    Affects Versions: Commons Threads 3.2.22
            Reporter: Joerg Hoh


It should be possible to reference a thread pool directly instead of always going via the {{ThreadPoolManager}}

{{
@Reference(name="my-thread-pool")
ThreadPool myThreadPool;
}}

In the same approach it's probably advisable to replace the current implementation (which relies on a ManagedServiceFactory) with DS.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)