[jboss-jira] [JBoss JIRA] (AS7-2071) mutable managed executor services for thread pool services
Alexey Loubyansky (Resolved) (JIRA)
jira-events at lists.jboss.org
Thu Oct 13 10:50:16 EDT 2011
[ https://issues.jboss.org/browse/AS7-2071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Loubyansky resolved AS7-2071.
------------------------------------
Resolution: Done
> mutable managed executor services for thread pool services
> ----------------------------------------------------------
>
> Key: AS7-2071
> URL: https://issues.jboss.org/browse/AS7-2071
> Project: Application Server 7
> Issue Type: Task
> Reporter: Alexey Loubyansky
> Assignee: Alexey Loubyansky
> Fix For: 7.1.0.Beta1
>
>
> Currently thread pool services in the threads subsystem implement Service<ExecutorService>. To improve usability, it is suggested to change them like
> BoundedQueueThreadPoolService implements Service<ExecutorService>
> becomes BoundedQueueThreadPoolService implements Service<ManagedQueueExecutorService>
> public class ManagedQueueExecutorService implements ExecutorService
> private final QueueExecutor toManage
> private final BlockingExecutorService delegate;
> // Package protected for subsys write-attribute handlers
> void setCoreThreads(int coreThreads) {
> toManage.setCoreThreads(coreThreads);
> }
> ... other setters, plus delegate the ExecutorService calls
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list