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