[
https://issues.apache.org/jira/browse/SLING-11040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joerg Hoh updated SLING-11040:
------------------------------
Description:
It should be possible to reference a thread pool directly instead of always
going via the {{ThreadPoolManager}}
{code}
@Reference(name="my-thread-pool")
ThreadPool myThreadPool;
{code}
In the same approach it's probably advisable to replace the current
implementation (which relies on a ManagedServiceFactory) with DS.
was:
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.
> 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
> Priority: Major
>
> It should be possible to reference a thread pool directly instead of always
> going via the {{ThreadPoolManager}}
> {code}
> @Reference(name="my-thread-pool")
> ThreadPool myThreadPool;
> {code}
> 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)